FIX #2271
authorDaniel Fischer <daniel.is.fischer@web.de>
Mon, 18 Oct 2010 21:03:37 +0000 (21:03 +0000)
committerDaniel Fischer <daniel.is.fischer@web.de>
Mon, 18 Oct 2010 21:03:37 +0000 (21:03 +0000)
commit57f96e7ce88dcfa05279b5b4fd11769fea48989d
treea62f507f0f9234b3f41fd6661658338a3e384e9d
parent6685444335fe57d5d86b61965989e45f34fddf0e
FIX #2271
Faster rounding functions for Double and float with Int or Integer results.
Fixes #2271.
Since some glibc's have buggy rintf or rint functions and the behaviour of
these functions depends on the setting of the rounding mode, we provide our
own implementations which always round ties to even.

Also added rewrite rules and removed trailing whitespace.
GHC/Float.lhs
GHC/Float/RealFracMethods.hs [new file with mode: 0644]
base.cabal
cbits/primFloat.c