On Thu, 24 Aug 2023, Torbjörn Granlund wrote:
Marc Glisse <marc.gli...@inria.fr> writes:
There is, it is called (u)intptr_t, the standard name for an integer
type that can hold a pointer.
Right!
I only naively checked intmax_t, assuming max would mean max. :-)
Hmm, for old ABIs gaining a new integer type, I understand why intmax_t
cannot increase. But for a new ABI like here, it is surprising. I guess
they consider (u)intptr_t as not a true integer type but just a kind of
pointer through which they can track memory. That would explain why they
don't like non-pointer arithmetic on that type.
The failures I get in the testsuite are "Invalid address alignment."
during temporary allocation, which is not too surprising.
--
Marc Glisse
_______________________________________________
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs