[Haskell-cafe] Looking for largest power of 2 <= Integer

Simon Peyton-Jones simonpj at microsoft.com
Thu Dec 6 04:35:21 EST 2007


| (2) Is it safe to assume an underlying implementation based on GMP?
| (In Num.lhs there is an alternative definition for .NET. Is that ever
| used?) Is it safe to assume the size of a GMP "limb" is the same as
| the word size? (I'm assuming it is for now.)

I think it's safe for now.  In principle the impl of Integer could be anything, and various people would like it to be something other than gmp for licensing reasons. But as of today, it's always gmp.

Simon


More information about the Haskell-Cafe mailing list