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: Kahan's Floating Point Test



> 
> X^((X + 1) / (X - 1)) vs. exp(2) = 7.38905609893065218e+00 as X -> 1
> calculated 7.38905609548934539e+00 until I switched to double rounding

I checked this on a linux box.  The result is due to the pow function
in the system math library.  The function is sensitive to the setting
of the fpu rounding precision.  It is not a compiler bug.



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