mirror of https://github.com/google/brotli
check for __ARM64_ARCH_8__ in dec/port.h so that arm64 arch under clang is detected, check for __ARM_ARCH being exactly equal to 7 so that arm64 arch does not define BROTLI_TARGET_ARMV7
This commit is contained in:
parent
5ce9bf11b3
commit
214629ccd7
|
@ -32,13 +32,13 @@
|
||||||
#include "../common/port.h"
|
#include "../common/port.h"
|
||||||
|
|
||||||
#if defined(__arm__) || defined(__thumb__) || \
|
#if defined(__arm__) || defined(__thumb__) || \
|
||||||
defined(_M_ARM) || defined(_M_ARMT)
|
defined(_M_ARM) || defined(_M_ARMT) || defined(__ARM64_ARCH_8__)
|
||||||
#define BROTLI_TARGET_ARM
|
#define BROTLI_TARGET_ARM
|
||||||
#if (defined(__ARM_ARCH) && (__ARM_ARCH >= 7)) || \
|
#if (defined(__ARM_ARCH) && (__ARM_ARCH == 7)) || \
|
||||||
(defined(M_ARM) && (M_ARM >= 7))
|
(defined(M_ARM) && (M_ARM == 7))
|
||||||
#define BROTLI_TARGET_ARMV7
|
#define BROTLI_TARGET_ARMV7
|
||||||
#endif /* ARMv7 */
|
#endif /* ARMv7 */
|
||||||
#if defined(__aarch64__)
|
#if defined(__aarch64__) || defined(__ARM64_ARCH_8__)
|
||||||
#define BROTLI_TARGET_ARMV8
|
#define BROTLI_TARGET_ARMV8
|
||||||
#endif /* ARMv8 */
|
#endif /* ARMv8 */
|
||||||
#endif /* ARM */
|
#endif /* ARM */
|
||||||
|
|
Loading…
Reference in New Issue