* [PATCH] AArch64: Add FAST_FMINMAX
@ 2021-11-30 13:06 Wilco Dijkstra via Libc-alpha
0 siblings, 0 replies; only message in thread
From: Wilco Dijkstra via Libc-alpha @ 2021-11-30 13:06 UTC (permalink / raw)
To: 'GNU C Library'
Add FAST_FMINMAX to math_private.h to enable inlining of fmin/fmax
in math functions (such as hypot).
Passes regression suite.
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-30 13:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-30 13:06 [PATCH] AArch64: Add FAST_FMINMAX Wilco Dijkstra via Libc-alpha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).