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
_______________________________________________
gmp-devel mailing list
gmp-devel@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-devel

Reply via email to