Making sure <gmp.h> and libgmp.* do match

Roberto Bagnara bagnara at
Wed Oct 22 13:57:17 CEST 2008

Vincent Lefevre wrote:
> FYI, I've done the follwing for years:
>   assert(sizeof(mp_limb_t) * CHAR_BIT == GMP_LIMB_BITS);
>   assert(mp_bits_per_limb == GMP_LIMB_BITS);

Torbjorn, Vincent,

thank you very much indeed.
This is precisely what I was looking for.


Prof. Roberto Bagnara
Computer Science Group
Department of Mathematics, University of Parma, Italy
mailto:bagnara at

More information about the gmp-discuss mailing list