diff --git a/neon_simd.cpp b/neon_simd.cpp index 3b75f2e7..2518bdd7 100644 --- a/neon_simd.cpp +++ b/neon_simd.cpp @@ -50,7 +50,9 @@ extern "C" { bool CPU_ProbeARMv7() { -#if defined(CRYPTOPP_NO_CPU_FEATURE_PROBES) +#if defined(__aarch32__) || defined(__aarch64__) || defined(_M_ARM64) + return false; +#elif defined(CRYPTOPP_NO_CPU_FEATURE_PROBES) return false; #elif CRYPTOPP_ARM_NEON_AVAILABLE # if defined(CRYPTOPP_MS_STYLE_INLINE_ASSEMBLY)