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]
Other format: [Raw text]

RE: g++ optimization issue??


I am not asking for a compiler that magically fixes unwanted properties
of the IEEE representation. I just wondered why it wasn't possible to be
consistent.

Colin

On Fri, 2004-12-17 at 13:03 +0000, Dave Korn wrote:
> > -----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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]