From 7817004df0bf57e1eb83e8ef9c0c407477b59d71 Mon Sep 17 00:00:00 2001 From: Janne Grunau <janne-x264@jannau.net> Date: Fri, 1 Nov 2019 10:00:11 +0100 Subject: [PATCH] aarch64: Use HAVE_NEON define during CPU detection --- common/cpu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/cpu.c b/common/cpu.c index 40c4628f..5dd811c8 100644 --- a/common/cpu.c +++ b/common/cpu.c @@ -402,7 +402,11 @@ uint32_t x264_cpu_detect( void ) uint32_t x264_cpu_detect( void ) { +#if HAVE_NEON return X264_CPU_ARMV8 | X264_CPU_NEON; +#else + return X264_CPU_ARMV8; +#endif } #elif HAVE_MSA -- GitLab