sizeof (mp_limb_t) vs sizeof (unsigned long)

Torbjörn Granlund tg at gmplib.org
Tue Feb 20 10:55:47 UTC 2018


paul zimmermann <Paul.Zimmermann at inria.fr> writes:

  is there any configuration where sizeof (mp_limb_t) < sizeof (unsigned long) ?
  
Well, we have this in gmp.h:

#ifdef __GMP_SHORT_LIMB
typedef unsigned int		mp_limb_t;
typedef int			mp_limb_signed_t;
#else
...  

But __GMP_SHORT_LIMB is not set for any config so I suppose the answer
to your question is no.

-- 
Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-discuss mailing list