Small limb-size in mini-gmp?

Niels Möller nisse at
Wed Nov 20 11:56:04 UTC 2019

tg at (Torbjörn Granlund) writes:

> Would it be feasible to use asl.h instead of the new coarse typing in
> mini-GMP?  I think we should then conditionally #include asl.h from each
> test case, but leave mini-gmp.{c,h} alone.

Or maybe it's sufficient to add "-include .../asl.h" to CPPFLAGS ? Plus
whatever is needed to force mini-gmp.h to use asl's definition of

Hmm, one would also need to define GMP_LIMB_BITS differently, mini-gmp.c
currently uses sizeof(mp_limb_t) * CHAR_BIT, which will will not be
correct with asl.h.


Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.

More information about the gmp-devel mailing list