long long

Marc Glisse marc.glisse at inria.fr
Mon Jul 30 13:57:04 CEST 2012

On Mon, 30 Jul 2012, Torbjorn Granlund wrote:

> I suspect few people would get any joy if we extended the range from 32
> bits to 64 bits under Windoze.  I think I never passed a constant
> argument >100 to any _ui functions.

I wasn't particularly thinking of constants. Some people use long long as 
long as they can, and switch to mpz_t (sometimes dynamically) when numbers 
won't fit anymore. In that case, the arguments are typically as large as 
builtin types will allow.

> We could perhaps add a parallel set of functions (_ul, or _ull) allowing
> long long.  We should then follow the principle of "one GMP release, one
> GMP API" and reject compilers and ABIs without long long support.

many feature macros and you want to avoid introducing a fourth one? Ok, I 
can understand that policy.

Marc Glisse

More information about the gmp-devel mailing list