Optimize SPARC T4 MONTMUL support.
authorAndy Polyakov <appro@openssl.org>
Tue, 18 Jun 2013 08:39:38 +0000 (10:39 +0200)
committerAndy Polyakov <appro@openssl.org>
Tue, 18 Jun 2013 09:07:16 +0000 (11:07 +0200)
commit03c8441b141ba09ae679fd49c2275f9759aae356
tree4eb9d1eaf3ee2eaeba3557725803cc5229221c37
parente887c4187ef9bb5dc74576270c50706cbb0b4912
Optimize SPARC T4 MONTMUL support.

Improve RSA sing performance by 20-30% by:
- switching from floating-point to integer conditional moves;
- daisy-chaining sqr-sqr-sqr-sqr-sqr-mul sequences;
- using MONTMUL even during powers table setup;
(cherry picked from commit 4ddacd9921f48013b5cd011e4b93b294c14db1c2)
crypto/bn/asm/sparct4-mont.pl
crypto/bn/bn_exp.c