itch bugs

Niels Möller nisse at lysator.liu.se
Sat Aug 23 18:49:16 UTC 2014


Joe keane <jgk at panix.com> writes:

> sort of

Please explain what the problem this is intended to solve. A guess is
that you have found that one of the implementations of TMP_ALLOC (called
by TMP_ALLOC_LIMBS) evaluates the size argument twice,

  #define TMP_ALLOC(n) \
     (LIKELY ((n) < 65536) ? TMP_SALLOC(n) : TMP_BALLOC(n))

IMO, it would be better to fix that macro. Easiest would be to make it
an inline function instead; not sure if there are any drawbacks.

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.


More information about the gmp-bugs mailing list