mpz_combit

Niels Möller nisse at lysator.liu.se
Fri Dec 28 00:03:29 CET 2012


bodrato at mail.dm.unipi.it writes:

> About mpz_combit code, may I suggest replacing the two lines
> 	  MPN_NORMALIZE (dp, dsize);
> 	  ASSERT (dsize > 0);
> with
> 	  MPN_NORMALIZE_NOT_ZERO (dp, dsize);
> ?

Conciseness is nice. Is that equivalent? I had some impression that the
latter is less safe, but that may be completely wrong.

/Niels

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


More information about the gmp-devel mailing list