X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/ea1b3cec199052eda3a0054d86c70e948c6e7580..HEAD:/math/mpmont.c diff --git a/math/mpmont.c b/math/mpmont.c index 6109c856..b4bf982e 100644 --- a/math/mpmont.c +++ b/math/mpmont.c @@ -125,7 +125,8 @@ static redccore__functype *pick_redccore(void) cpu_feature_p(CPUFEAT_ARM_NEON)); #endif #if CPUFAM_ARM64 - DISPATCH_PICK_COND(mpmont_reduce, maybe_redc4_arm64_simd, 1); + DISPATCH_PICK_COND(mpmont_reduce, maybe_redc4_arm64_simd, + cpu_feature_p(CPUFEAT_ARM_NEON)); #endif DISPATCH_PICK_FALLBACK(mpmont_reduce, simple_redccore); } @@ -246,7 +247,8 @@ static mulcore__functype *pick_mulcore(void) cpu_feature_p(CPUFEAT_ARM_NEON)); #endif #if CPUFAM_ARM64 - DISPATCH_PICK_COND(mpmont_mul, maybe_mul4_arm64_simd, 1); + DISPATCH_PICK_COND(mpmont_mul, maybe_mul4_arm64_simd, + cpu_feature_p(CPUFEAT_ARM_NEON)); #endif DISPATCH_PICK_FALLBACK(mpmont_mul, simple_mulcore); }