~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math/mpx-mul4-{arm-neon,arm64-simd}.S, etc.: Add ARM versions of `mul4'.
[catacomb]
/
math
/
mpx.c
diff --git
a/math/mpx.c
b/math/mpx.c
index
f761003
..
d3d0a04
100644
(file)
--- a/
math/mpx.c
+++ b/
math/mpx.c
@@
-931,6
+931,14
@@
static void simple_umul(mpw *dv, mpw *dvl, const mpw *av, const mpw *avl,
MAYBE_UMUL4(amd64_avx)
#endif
MAYBE_UMUL4(amd64_avx)
#endif
+#if CPUFAM_ARMEL
+ MAYBE_UMUL4(arm_neon)
+#endif
+
+#if CPUFAM_ARM64
+ MAYBE_UMUL4(arm64_simd)
+#endif
+
static mpx_umul__functype *pick_umul(void)
{
#if CPUFAM_X86
static mpx_umul__functype *pick_umul(void)
{
#if CPUFAM_X86
@@
-945,6
+953,13
@@
static mpx_umul__functype *pick_umul(void)
DISPATCH_PICK_COND(mpx_umul, maybe_umul4_amd64_sse2,
cpu_feature_p(CPUFEAT_X86_SSE2));
#endif
DISPATCH_PICK_COND(mpx_umul, maybe_umul4_amd64_sse2,
cpu_feature_p(CPUFEAT_X86_SSE2));
#endif
+#if CPUFAM_ARMEL
+ DISPATCH_PICK_COND(mpx_umul, maybe_umul4_arm_neon,
+ cpu_feature_p(CPUFEAT_ARM_NEON));
+#endif
+#if CPUFAM_ARM64
+ DISPATCH_PICK_COND(mpx_umul, maybe_umul4_arm64_simd, 1);
+#endif
DISPATCH_PICK_FALLBACK(mpx_umul, simple_umul);
}
DISPATCH_PICK_FALLBACK(mpx_umul, simple_umul);
}