This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: g++ optimization issue??
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'ColinLaney'" <claney at online dot de>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Fri, 17 Dec 2004 13:03:31 -0000
- Subject: RE: g++ optimization issue??
> -----Original Message-----
> From: ColinLaney
> Sent: 17 December 2004 12:36
> I am aware of fp issues. I just don't understand why the compiler
> generates code that is not.
>
Because it isn't possible? FP is not real mathematics over the rational
number field, it is a finite approximation. If you really want absolute
precision and accuracy, you need to use a proper arbitrary-precision bignum
library, such as GMP.
cheers,
DaveK
--
Can't think of a witty .sigline today....