mp_size_t

Hans Åberg haberg-1 at telia.com
Wed Oct 6 12:18:22 UTC 2021


> On 6 Oct 2021, at 13:15, Vincent Lefevre <vincent at vinc17.net> wrote:
> 
> On 2021-10-06 11:53:10 +0200, Torbjorn Granlund wrote:
>> Hans Åberg <hans.aberg-1 at telia.com> writes:
>> 
>>  How large is this overhead?
>> 
>> 8 bytes per mpz_t.
>> 
>> (That might not matter to some people, but imagine somebody with huge
>> matrices of mpz_t.)
> 
> But people with many small integers could choose an alternate
> representation for these small integers, better than mpz_t
> (with a tag to specify which representation is used).

If the trend in C++ is followed, then for general use, a size_t or a ptrdiff_t, and something else for special use.



More information about the gmp-discuss mailing list