This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Serious bug


Jeffrey A Law wrote:
> 
>   In message <360F905D.4B1@blueskystudios.com>you write:
>   > (1) If you subtract a number from itself, you get 0.
> Not for ieee754 math.
> 
>   > (2) If you compare a number with itself, you get equality.
> Not for ieee754 math.
> 
>   > (3) If you assign a number to another of the same type, you get the same
>   > number.
> I don't know about this one.

This is not a matter of standards.  It's math.  Most of us have been
dealing with both integer and floating-point math in various forms long
enough to realize that it's possible to get these basics right.  I
wouldn't fall back on any standard to excuse the compiler.  I would,
however, blame the processor architecture or implementation, if it turns
out to be costly to implement.

-- 
Dick Hadsell			914-381-8400 x5446 Fax: 914-381-9790
Reply-to:			hadsell@blueskystudios.com
Blue Sky | VIFX                 http://www.bluesky-vifx.com
1 South Road, Harrison, NY 10528


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]