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


Kamil Iskra wrote:
> 
> Not to me. I was taught NEVER to use == or != with floating point, because
> they simply don't make sense. Too bad that C[++] standard allows them.

I don't want to replace (x == 0.) by (x < 0. ? (x > -DBL_MIN) : (x <
DBL_MIN)) for the simple cases (e.g., I assigned 0. to x earlier, did
some other stuff which may have altered x, and now I want to see if x
was altered).  I want the compiler to take care of that for me.  My
experience says that most compilers do.  Don't bother telling me my
expectations are too high.

-- 
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]