This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: exp() bug?
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Lester Ingber <ingber at ingber dot com>, gcc-help at gcc dot gnu dot org
- Date: Tue, 05 Oct 2004 11:25:01 -0500
- Subject: Re: exp() bug?
- References: <20041005154308.GA3452@ingber.com>
Hi Lester,
Not a bug. Different platforms have different hardware, and as such
different rounding or algorithms can cause variation in the least
significant bits. (In non-technical terms, the fiddlybits.)
There are techniques one can use to mitigate those situations. But they
are hard to eliminate.
Even in Java, which is supposed to be JVM centric and thus platform
neutral, suffers from this problem without taking measures to guarantee
IEEE 754 compliance.
Sincerely,
--Eljay