Marc van Dongen= <[EMAIL PROTECTED]> writes:
> Could somebody tell me how (==) :: Integer -> Integer -> Bool
> is implemented in ghc? Is this done as
> (==) a b = (==) (a - b) 0
> or is this done by calling some C-function which compares two
> integers?
It's done by calling mpz_cmp (from the GNU mp library) almost
directly. The grimy details are in ghc/includes/StgMacros.lh if
you're interested.
Cheers,
Simon
--
Simon Marlow [EMAIL PROTECTED]
University of Glasgow http://www.dcs.gla.ac.uk/~simonm/
finger for PGP public key