aes/asm/aesv8-armx.pl: optimize for Cortex-A5x.
authorAndy Polyakov <appro@openssl.org>
Tue, 3 Mar 2015 21:05:25 +0000 (22:05 +0100)
committerAndy Polyakov <appro@openssl.org>
Thu, 2 Apr 2015 07:47:56 +0000 (09:47 +0200)
commit94376cccb4ed5b376220bffe0739140ea9dad8c8
tree162487337d9149d1c34e585f5bfb5583f0561f64
parent7b644df899d0c818488686affc0bfe2dfdd0d0c2
aes/asm/aesv8-armx.pl: optimize for Cortex-A5x.

ARM has optimized Cortex-A5x pipeline to favour pairs of complementary
AES instructions. While modified code improves performance of post-r0p0
Cortex-A53 performance by >40% (for CBC decrypt and CTR), it hurts
original r0p0. We favour later revisions, because one can't prevent
future from coming. Improvement on post-r0p0 Cortex-A57 exceeds 50%,
while new code is not slower on r0p0, or Apple A7 for that matter.

[Update even SHA results for latest Cortex-A53.]

Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/aes/asm/aesv8-armx.pl
crypto/sha/asm/sha1-armv8.pl
crypto/sha/asm/sha512-armv8.pl