I played a bit with an addmul_1 of my own, with some ideas from your code. I don't plan to do more work on this. Does this perform well on hardware?
Note that it only works for n = 0 (mod 4).
z14-addmul_1-ur.asm
Description: Binary data
-- Torbjörn Please encrypt, key id 0xC8601622
_______________________________________________ gmp-devel mailing list gmp-devel@gmplib.org https://gmplib.org/mailman/listinfo/gmp-devel