Number of limbs for an unsigned long
marc.glisse at inria.fr
Tue Mar 15 19:29:44 CET 2011
On Tue, 15 Mar 2011, Torbjorn Granlund wrote:
> Marc Glisse <marc.glisse at inria.fr> writes:
> Ah, limbs (including nails) are strictly larger than long if and only
> if _LONG_LONG_LIMB is defined. That should do it, thanks.
> I can imagine a broken situation that violates this, where
> _LONG_LONG_LIMB is defined for an ABI where 'long' and 'long long' are
> the same size. I *think* that GMP's configure will detect and reject
> that; if not, it is a configure bug that we will fix.
I pushed a patch supposed to test this, but I just realized that without
nails, this will simply never be tested. Bah, I'll just be extra careful
writing code and defer testing to nails' come-back.
More information about the gmp-devel