long long support
Marc Glisse
marc.glisse at inria.fr
Sun Jan 24 10:26:21 UTC 2021
On Fri, 22 Jan 2021, William Morriss wrote:
> I am using gmpxx and I noticed that long longs, particularly uint64_t, were
> not supported, and that the documentation also notes this gap. I am
> wondering whether this is because of some real limitation or just missing
> functionality. It seems to have been missing for a long time even though
> long long was standardized in C++11. I would also consider adding the
> support myself.
The main issue is that support for long long is missing in GMP itself (the
C part). And it is missing because GMP is still officially a C89 library.
There are plans to move it to C99, but I don't think the work to add long
long has been done yet. The main platform where long long support would be
beneficial is win64 because of their weird choice of 32-bit long (although
it would still be nice on other platforms).
Once long long is in GMP, adding it to the C++ wrappers should be easy
enough.
--
Marc Glisse
More information about the gmp-discuss
mailing list