test if an unsigned long fits in a limb.
Niels Möller
nisse at lysator.liu.se
Wed Mar 7 15:14:00 CET 2012
Torbjorn Granlund <tg at gmplib.org> writes:
> But what is the GMP API then?
It's a long list of functions, where a couple of them are supported only
if the platform has the type long long.
> But I think it is highly doubtful if that would
> "improve the GMP experience". :-)
I don't think it's a big deal. GMP programs which don't use the lon
glong functions need not care. GMP program which use the long long
functions will fail when compiled on a system which lacks long long. But
then it will fail from various compilation errors long before linking
with gmp..
It may get more confusing if you have a system with several compilers,
where some, but not all, of the available compilers support long long.
Are there such systems? On such a system, ideally gmp configure should
emit a loud warning before using a compiler lacking long long.
Regards,
/Niels
--
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.
More information about the gmp-devel
mailing list