diff mbox series

AArch64: Add FAST_FMINMAX

Message ID VE1PR08MB5599D72C6477CCC4FC13E53D83679@VE1PR08MB5599.eurprd08.prod.outlook.com
State Superseded
Headers show
Series AArch64: Add FAST_FMINMAX | expand

Checks

Context Check Description
dj/TryBot-apply_patch success Patch applied to master at the time it was sent
dj/TryBot-32bit success Build for i686

Commit Message

Wilco Dijkstra Nov. 30, 2021, 1:06 p.m. UTC
Add FAST_FMINMAX to math_private.h to enable inlining of fmin/fmax
in math functions (such as hypot).

Passes regression suite.

---
diff mbox series

Patch

diff --git a/sysdeps/aarch64/fpu/math_private.h b/sysdeps/aarch64/fpu/math_private.h
index 83f0d15cc8aa554569dc19818788be601afce73c..8de0782d6c0293002043c7071d87246f4ad456f2 100644
--- a/sysdeps/aarch64/fpu/math_private.h
+++ b/sysdeps/aarch64/fpu/math_private.h
@@ -22,6 +22,9 @@ 
 #include <stdint.h>
 #include <math.h>
 
+/* Use inline fmin/fmax instructions.  */
+#define FAST_FMINMAX 1
+
 /* Use inline round and lround instructions.  */
 #define TOINT_INTRINSICS 1