MPN_FILL vs MPN_ZERO

paul zimmermann Paul.Zimmermann at inria.fr
Tue Apr 24 10:46:27 UTC 2018


       Hi,

I just discovered the internal macro MPN_FILL.

I understand MPN_ZERO(p,n) is implemented as "if (n) MPN_FILL(p, n, 0)".

Then in case MPN_FILL is implemented using memset, since memset also checks
for the case n=0, MPN_ZERO(p,n) will perform two tests for n > 0. Why not
directly call MPN_FILL?

Best regards,
Paul


More information about the gmp-devel mailing list