_mp_alloc to long int

Vincent Lefevre vincent at vinc17.net
Thu Sep 29 19:13:22 CEST 2022


[resent due to crash of mailman]

On 2022-09-29 17:38:15 +0200, Torbjorn Granlund wrote:
> (We have experimental code which makes the _mp_alloc field use a 16 bits
> floating-point number and the _mp_size field use a 48-bit integer.
> I.e., the _mp_size field steals 16 of _mp_alloc's bits.  Well-behaved
> programs should be binary compatible with such changes, and the mpz_t
> variables will not need more space.)

If I understand correctly, various inlines from gmp.h use
the _mp_size field. Wouldn't this be an issue for binary
compatibility?

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


More information about the gmp-discuss mailing list