]> git.proxmox.com Git - mirror_zfs.git/commit - module/icp/asm-arm/sha2/sha512-armv7.S
module/icp/asm-arm/sha2: auto detect __ARM_ARCH
authorShengqi Chen <harry-chen@outlook.com>
Wed, 22 Nov 2023 13:58:47 +0000 (21:58 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 28 Nov 2023 21:25:44 +0000 (13:25 -0800)
commit4340f69be1f8562ddb6654618134c921496e5e47
treea77463888db323451904d71a66312ace3d49bb5d
parentb3a985fa42def27e70dbf4fbfb13cdb779add517
module/icp/asm-arm/sha2: auto detect __ARM_ARCH

This patch uses __ARM_ARCH set by compiler (both
GCC and Clang have this) whenever possible instead
of hardcoding it to 7. This change allows code to
compile on earlier ARM architectures such as armv5te.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
Closes #15557
module/icp/asm-arm/sha2/sha256-armv7.S
module/icp/asm-arm/sha2/sha512-armv7.S