Zimmermann Paul Paul.Zimmermann at
Tue May 7 10:43:33 CEST 2013


I discovered the mpn_neg function:

 -- Function: mp_limb_t mpn_neg (mp_limb_t *RP, const mp_limb_t *SP,
          mp_size_t N)
     Perform the negation of {SP, N}, and write the result to {RP, N}.
     Return carry-out.

Since mpn only deals with nonnegative numbers, what is "the negation of
{SP, N}"? Also, should the carry be a borrow?


More information about the gmp-discuss mailing list