Add SHA2 SIMD feature tests for FreeBSD
commit589143c225c7bca1ef99148c6eae1291174ca584
authorTino Reichardt <milky-zfs@mcmilk.de>
Wed, 28 Sep 2022 08:53:18 +0000 (28 10:53 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 2 Mar 2023 21:51:56 +0000 (2 13:51 -0800)
treea73b304b4a667031b0398d24a8f8a2356044df61
parent6723d1110f6daf93be93db74d5ea9f6b64c9bce5
Add SHA2 SIMD feature tests for FreeBSD

These are added:
- zfs_neon_available() for arm and aarch64
- zfs_sha256_available() for arm and aarch64
- zfs_sha512_available() for aarch64
- zfs_shani_available() for x86_64

Changes:
- simd_powerpc.h: change license from CDDL to BSD

Tested-by: Rich Ercolani <rincebrain@gmail.com>
Tested-by: Sebastian Gottschall <s.gottschall@dd-wrt.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de>
Closes #13741
include/os/freebsd/Makefile.am
include/os/freebsd/spl/sys/mod_os.h
include/os/freebsd/spl/sys/simd.h
include/os/freebsd/spl/sys/simd_aarch64.h [copied from include/os/freebsd/spl/sys/simd.h with 60% similarity]
include/os/freebsd/spl/sys/simd_arm.h [copied from include/os/freebsd/spl/sys/simd.h with 64% similarity]
include/os/freebsd/spl/sys/simd_powerpc.h [copied from include/os/freebsd/spl/sys/simd.h with 58% similarity]
include/os/freebsd/spl/sys/simd_x86.h