Enable AES optimisation on Apple Silicon M2-based systems
authorTom Cosgrove <tom.cosgrove@arm.com>
Wed, 25 Jan 2023 19:34:25 +0000 (19:34 +0000)
committerPauli <pauli@openssl.org>
Sun, 29 Jan 2023 22:49:13 +0000 (09:49 +1100)
commitd79bb5316e1318bd776d6b2d6723a36778e07f9d
treea77514f4dd4d16fec8e0eb45c8959f9b4ffe3e41
parenta4347a9a57dcb985283bba03dd3b16294b55945b
Enable AES optimisation on Apple Silicon M2-based systems

Gives a performance enhancement of 16-38%, similar to the M1.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20141)
crypto/armcap.c