Wed Feb 22 06:07:19 PST 2006 Simon Marlow <[EMAIL PROTECTED]>
* floating-point fix for x86_64
For 32-bit float primtives like sinFloat#, we currently call the
double versions of the C library functions (sin(), cos() etc.). It
seems more correct to call the float versions (sinf(), cosf() etc.).
This makes a difference on x86_64, I'm not entirely sure why, but this
way at least generates more consistent results and avoids extra
promotion/demotion instructions when calling these primitives.
M ./ghc/compiler/cmm/PprC.hs -13 +13
M ./ghc/compiler/nativeGen/MachCodeGen.hs -13 +18
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc