]> git.ipfire.org Git - thirdparty/zstd.git/commit
aarch64: use __ARM_NEON instead of __aarch64__ to control use of neon 2356/head
authorWarner Losh <imp@FreeBSD.org>
Tue, 13 Oct 2020 18:12:46 +0000 (12:12 -0600)
committerWarner Losh <imp@FreeBSD.org>
Tue, 13 Oct 2020 18:12:46 +0000 (12:12 -0600)
commit43c0054405a5b10c82b4a1520b4be0a4ab1f1b7e
tree6c649652304102e2f250f090ef1ee20d3226ba1a
parent1e47a75abffabef33688c0ae6a99b766c7df2021
aarch64: use __ARM_NEON instead of __aarch64__ to control use of neon

There are compilation environments in aarch64 where NEON isn't
available. While these environments could define ZSTD_NO_INTRINSICS,
it's more fail-safe to use the more specific symbol to know if NEON
extensions are available.

__ARM_NEON is the proper symbol, defined in ARM C Language Extensions
Release 2.1 (https://developer.arm.com/documentation/ihi0053/d/). Some
sources suggest __ARM_NEON__, but that's the obsolete spelling from
prior versions of the standard.

Signed-off-by: Warner Losh <imp@bsdimp.com>
lib/common/zstd_internal.h