Use divInt#/modInt# from ghc-prim
Add divInteger and modInteger functions

Now that divModInteger isn't inlined, we were getting allocations for
both results even if we're just going to throw one away.
Use CLong, not CInt, for mp_bitcnt_t value; fixes #5965

The GMP docs say:

    Counts of bits of a multi-precision number are represented in the C
    type mp_bitcnt_t. Currently this is always an unsigned long, but on
    some systems it will be an unsigned long long in the future.
Add missing imports.
Tweak RULEs; fixes #7041

In particular, the gcd rule now uses smallInteger rather than S#, which
means that it actually fires.

Also fixed a bug when the result is minBound :: Int.
Add another gcdInteger rule

This one is better when the result is converted to an Int
Move some rules into PrelRules
Simplify how gcd @ Int is implemented
Bump version to 0.5.0.0
Merge branch 'master' of darcs.haskell.org:/srv/darcs//packages/integer-gmp
Whitespace only: Line some things up better
Define testBitInteger; part of #3489

Based on a patch from pumpkingod@gmail.com
Fix building on Windows
Adapt to new Cmm syntax
fix type mismatch in result of integer_cmm_testBitIntegerzh
Add comment to .cabal file saying what GHC 7.6.1 shipped with
Bump version number following new policy

We now keep the HEAD version numbers as values which would be suitable
for immediate release.
zap obsolete FIXME, fix typos
Provide a way for OS X users to indicate a preference for the GMP framework

We used to always use the framework if it existed. Now the make variable
GMP_PREFER_FRAMEWORK can be used to control whether the library or the
framework is preferred.

Fixes #7466.
Fix configure when we don't have a gmp library