How large are arbitrarily large integers? (Was Re: Bitfield subtlety)

Torbjörn Granlund tg at
Thu Mar 29 10:31:50 UTC 2018

Richard Biener <rguenther at> writes:

  I would be surprised if that wouldn't work everywhere - any reason
  you have doubts?  To clarify, allocation would work like

   void *ptr = malloc (... + sizeof (size_t));
   ->_mp_d = (char *)ptr + sizeof (size_t);
   size_t *size = ptr;

Oh, I thought you suggested that we read malloc's presumed header.

Your proposal above is interesting.

Please encrypt, key id 0xC8601622

More information about the gmp-devel mailing list