comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Floating Point Bug on Intel Pentium CPUs
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Floating Point Bug on Intel Pentium CPUs [message #3169 is a reply to message #3167] Wed, 23 November 1994 10:43 Go to previous message
nowicki is currently offline  nowicki
Messages: 11
Registered: May 1993
Junior Member
In article <3avsus$22n@spool.cs.wisc.edu>, Liam Gumley <liamg@ssec.wisc.edu> writes:
> This is not strictly IDL related, but may affect IDL users on Pentium
> platforms who run complicated models. Recent discussion in the
> comp.sys.intel newsgroup has focussed on the discovery of a bug
> in the floating point unit on Intel Pentium CPUs. The bug is evident
> during divide operations. The following code reportedly will show the
> bug. It should give zero (or near enough to it), but on the Pentium
> it returns z = 256.
>
> x = 4195835.
> y = 3145727.
> z = x - (x/y)*y
>
> Apparently some kind of chip replacement strategy is being considered
> by Intel. For more details, tune to comp.sys.intel
>
> Cheers,
> Liam.
> liamg@ssec.wisc.edu
>

Above problem only there if using DOUBLE precision math, (DOUBLE in IDL,
real*8 in Fortran, double in C, etc.)

-Greg

/* Greg Nowicki | Mail Stop 401A | LIDAR Applications Group */
/* NASA Langley Research Center | Hampton, Virginia 23681-0001 */
/* Voice: (804) 864-2713 | FAX: (804) 864-7790 */
/* nowicki@tardis.larc.nasa.gov | My opinions and mine alone . . . */
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: IDL versus AVS
Next Topic: keypressed pauses program - how to do that?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 13:12:46 PDT 2025

Total time taken to generate the page: 1.52063 seconds