Small limb-size in mini-gmp?

Niels Möller nisse at lysator.liu.se
Wed Nov 13 21:20:18 UTC 2019


tg at gmplib.org (Torbjörn Granlund) writes:

> 2. follow Marco's proposal allowing "char", "short", "int", "long", and
> perhaps the spacey "long long" as overriding types, or

I guess that's good enough for now. But is it that difficult to do
quoting of "unsigned char"? Something like

  make check-mini-gmp CPPFLAGS='-D"MINI_GMP_LIMB_TYPE=unsigned char"'

(I don't remember trying to use -D with spaces in the expansion, but it
can't be unheard of).

> 3. allow the use of asl.h.  I am not sure we should support that with
> conditional inclusion in mini-gmp.h, as people might see it and wonder
> what that file might do.  We might resort to cruder tricks.

Not in mini-gmp.h. Using asl.h could be something like 

  #include "asl.h"
  #define MINI_GMP_LIMB_TYPE mp_limb_t 
  #include "mini-gmp.h"

somewhere in mini-gmp/test/.

Regards,
/Niels
 
-- 
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