Il 2020-04-26 16:22 [email protected] ha scritto:
Is there an easy way to run mini-gmp tests with
small limb size?

In mini-gmp/mini-gmp.h we have the following lines:

#ifndef MINI_GMP_LIMB_TYPE
#define MINI_GMP_LIMB_TYPE long
#endif

typedef unsigned MINI_GMP_LIMB_TYPE mp_limb_t;

So, you should define MINI_GMP_LIMB_TYPE to something like int, short, or char.
The following line works in my environment:

make CPPFLAGS="-DMINI_GMP_LIMB_TYPE=char" check-mini-gmp

Ĝis,
m

_______________________________________________
gmp-devel mailing list
[email protected]
https://gmplib.org/mailman/listinfo/gmp-devel

Reply via email to