Small limb-size in mini-gmp?

Marco Bodrato bodrato at mail.dm.unipi.it
Wed Nov 13 16:41:47 UTC 2019


Il 2019-11-13 16:28 Vincent Lefevre ha scritto:
> On 2019-11-12 22:22:00 +0100, Marco Bodrato wrote:
>> 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...
> 
> Unsigned types do not necessarily start with "unsigned".
> Example: uint128_t

I know.
I did hope that "unsigned" were just a modifier...

But it seems that a line like the following is not allowed

typedef unsigned uint128_t mp_limb_t

I do not understand why...

Ĝis,
m


More information about the gmp-devel mailing list