Small limb-size in mini-gmp?

Torbjörn Granlund tg at
Tue Nov 12 21:23:45 UTC 2019

Marco Bodrato <bodrato at> writes:

  Seems clean and straightforward.

  Is something like the following too tricky?

    #ifndef MINI_GMP_LIMB_TYPE
    #define MINI_GMP_LIMB_TYPE long

    typedef unsigned MINI_GMP_LIMB_TYPE mp_limb_t

  As only unsigned types are supported...

  Then, should we adapt the Makefile target check-mini-gmp in such a way
  that it can handle
    make MINI_GMP_LIMB_TYPE=char check-mini-gmp

Avoiding a space in the type would help.  :-)

Please encrypt, key id 0xC8601622

More information about the gmp-devel mailing list