Torbjorn Granlund <t...@gmplib.org> writes:

> Have you considered complementing C instead?

Not until now. Actually looks nice:

  A - b C = A + b (~C) + b - b B^n 

So this saves one not instruction, and we have to add and subtract the
scalar b from incoming and outgoing carry.

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.
_______________________________________________
gmp-devel mailing list
gmp-devel@gmplib.org
http://gmplib.org/mailman/listinfo/gmp-devel

Reply via email to