This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Serious bug
- To: law at cygnus dot com
- Subject: Re: Serious bug
- From: Richard Hadsell <hadsell at blueskystudios dot com>
- Date: Tue, 29 Sep 1998 10:00:47 -0400
- CC: egcs at cygnus dot com
- Organization: Blue Sky | VIFX
- References: <25973.907042265@hurl.cygnus.com>
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