Redefine gcdInt to use gcdInteger rather than gcdInt# primop
authorDuncan Coutts <duncan@well-typed.com>
Fri, 12 Jun 2009 14:29:51 +0000 (14:29 +0000)
committerDuncan Coutts <duncan@well-typed.com>
Fri, 12 Jun 2009 14:29:51 +0000 (14:29 +0000)
commitdcf1dbdc1d885130136b28f70dc7548ec10f07b5
tree3049b422063ac37ebaf9aedf40790c5397abf12c
parent1a2d88a60a8e2c8be84879d79f148d4c6ceb348e
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.
GHC/Base.lhs
GHC/Real.lhs