Only set HAS_AVX for x86_64

This commit is contained in:
2024-11-12 18:16:30 -08:00
parent 9c82f17e20
commit b78e817e24
+1 -1
View File
@@ -15,7 +15,7 @@ limitations under the License.
*/
#if !defined(USE_SIMD_FALLBACK) && defined(__has_include)
#if __has_include("immintrin.h")
#if defined(__x86_64__) && __has_include("immintrin.h")
#define HAS_AVX 1
#include <immintrin.h>
#elif __has_include("arm_neon.h")