mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
[PR #714] decode: fix NEON inclusion #1361
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/google/brotli/pull/714
State: closed
Merged: Yes
The macro that checks for NEON support should be __ARM_NEON, not
ARM_NEON. [1]
AArch64 compilers define __ARM_NEON but not ARM_NEON.
AArch32 compilers currently seem to define both, but could be within their
rights to drop ARM_NEON in future versions.
This change moves the check into the common/platform.h file, checks for
both forms, and sets BROTLI_TARGET_NEON if NEON support is available.
[1] Section 6.5.4 of the ARM C Language Extensions.
(At the time of writing, the latest version was Release 2.1.)