Re: Small limb-size in mini-gmp?

2019-11-12 Thread Torbjörn Granlund
Marco Bodrato writes: Seems clean and straightforward. Is something like the following too tricky? #ifndef MINI_GMP_LIMB_TYPE #define MINI_GMP_LIMB_TYPE long #endif typedef unsigned MINI_GMP_LIMB_TYPE mp_limb_t As only unsigned types are supported... Then, should we a

Re: Small limb-size in mini-gmp?

2019-11-12 Thread Marco Bodrato
Il 2019-11-12 16:25 ni...@lysator.liu.se ha scritto: t...@gmplib.org (Torbjörn Granlund) writes: so I'll wait until there is a defined method of controlling its declaration.) Then we'd need something like #ifndef MINI_GMP_LIMB_TYPE #define MINI_GMP_LIMB_TYPE unsigned long #endif t

Re: Small limb-size in mini-gmp?

2019-11-12 Thread Niels Möller
t...@gmplib.org (Torbjörn Granlund) writes: > (Editing the mp_limb_t declaration from within the test drivers might be > a poor approach, though, so I'll wait until there is a defined method of > controlling its declaration.) Then we'd need something like #ifndef MINI_GMP_LIMB_TYPE #define M

Re: Small limb-size in mini-gmp?

2019-11-12 Thread Torbjörn Granlund
Marco Bodrato writes: But I'm not sure we should officially document this feature, for the simple reason that... it is not currently tested by our great testing framework. I'd be willing to add whatever test is desirable. (Editing the mp_limb_t declaration from within the test drivers mig