chiark
/
gitweb
/
~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*.c: Check for ARM64 SIMD before using the accelerated code.
[catacomb]
/
math
/
mpx.c
diff --git
a/math/mpx.c
b/math/mpx.c
index d3d0a04a88947c463234c8b89c57f0b4eed860e5..ac8268832949e82f0534aeca68fe58ad8686d69f 100644
(file)
--- a/
math/mpx.c
+++ b/
math/mpx.c
@@
-958,7
+958,8
@@
static mpx_umul__functype *pick_umul(void)
cpu_feature_p(CPUFEAT_ARM_NEON));
#endif
#if CPUFAM_ARM64
cpu_feature_p(CPUFEAT_ARM_NEON));
#endif
#if CPUFAM_ARM64
- DISPATCH_PICK_COND(mpx_umul, maybe_umul4_arm64_simd, 1);
+ DISPATCH_PICK_COND(mpx_umul, maybe_umul4_arm64_simd,
+ cpu_feature_p(CPUFEAT_ARM_NEON));
#endif
DISPATCH_PICK_FALLBACK(mpx_umul, simple_umul);
}
#endif
DISPATCH_PICK_FALLBACK(mpx_umul, simple_umul);
}