[PATCH 2/2] Optimize 64-bit mpn_add_N and mpn_sub_N for sparc T3 and later.

Niels Möller nisse at lysator.liu.se
Thu Mar 7 09:23:59 CET 2013

Torbjorn Granlund <tg at gmplib.org> writes:

> I optimised submul_1.asm, and then edited both addmul_1 and submul_1 to
> use as similar operand order as possible.

So remaining differences are necessary? I don't remember much sparc
assembly, but it seems carry handling is done slightly differently. But
appearantly there was no need for negation-on-the-fly tricks in
submul_1, you just use subcc instead of addcc for the final subtraction
(maybe we discussed that trick in some other context?).


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