This is the mail archive of the
mailing list for the Cygwin project.
RE: exp() bug?
- From: "Dave Korn" <dk at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Tue, 5 Oct 2004 16:44:02 +0100
- Subject: RE: exp() bug?
> -----Original Message-----
> From: cygwin-owner On Behalf Of Lester Ingber
> Sent: 05 October 2004 16:36
> I believe there is a bug in some gcc's, at least in the exp() function,
> and at least in the way round-offs are (in)consistently treated.
> I first noticed some differences in results in calculations using the
> MINGW gcc vs the Cygwin gcc on my ThinkPad XPPro machine. I applied
> the same code on FreeBsd and on SPARC/Solaris9.
First go and google for "What every computer scientist should know about
floating point", and read the entire paper. Then try running your tests again,
but compile them with the "-ffloat-store" option. Then read "info gcc" about
-ffloat-store and its effects.
Then if you still think there's a bug, come back and describe it. But if you've
taken all that in, you no longer will.
Can't think of a witty .sigline today....
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html