patch applied (packages/base): Redefine gcdInt to use gcdInteger
rather than gcdInt# primop
Ian Lynagh
igloo at earth.li
Mon Jun 22 16:30:17 EDT 2009
Fri Jun 12 07:29:51 PDT 2009 Duncan Coutts <duncan at well-typed.com>
* Redefine gcdInt to use gcdInteger rather than gcdInt# primop
The gcdInt# primop uses gmp internally, even though the interface is
just Int#. Since we want to get gmp out of the rts we cannot keep
gcdInt#, however it's also a bit odd for the integer package to export
something that doesn't actually use Integer in its interface. Using
gcdInteger is still not terribly satisfactory aesthetically. However
in the short-term it works and it is no slower since gcdInteger calls
gcdInt# for the special case of two small Integers.
M ./GHC/Base.lhs -12 +1
M ./GHC/Real.lhs +4
View patch online:
http://darcs.haskell.org/packages/base/_darcs/patches/20090612142951-b0bbe-7a9fbd8d55eec4d50b9f452554dddabb8f713b46.gz
More information about the Cvs-libraries
mailing list