about summary refs log tree commit diff
path: root/sysdeps/generic/math-use-builtins.h
diff options
context:
space:
mode:
authorShen-Ta Hsieh <ibmibmibm.tw@gmail.com>2021-05-24 09:43:12 +0800
committerSunil K Pandey <skpgkp2@gmail.com>2022-09-29 13:15:34 -0700
commit6e6e51a1a27c0c315187569b41badc41c8f40afa (patch)
treea7dfcbbab5c77240c797024eafefac7eed5b96ef /sysdeps/generic/math-use-builtins.h
parentb85d5b3fe1d5c6cc081109d2ed5381bcf667d46c (diff)
downloadglibc-6e6e51a1a27c0c315187569b41badc41c8f40afa.tar.gz
glibc-6e6e51a1a27c0c315187569b41badc41c8f40afa.tar.xz
glibc-6e6e51a1a27c0c315187569b41badc41c8f40afa.zip
Use GCC builtins for roundeven functions if desired.
This patch is using the corresponding GCC builtin for roundevenf,
roundeven and roundevenl if the USE_FUNCTION_BUILTIN macros are defined
to one in math-use-builtins.h.

These builtin functions is supported since GCC 10.

The code of the generic implementation is not changed.

Signed-off-by: Shen-Ta Hsieh <ibmibmibm.tw@gmail.com>
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
(cherry picked from commit eb9066203f6e07128d42f771def4b7ad37b25dc1)
Diffstat (limited to 'sysdeps/generic/math-use-builtins.h')
-rw-r--r--sysdeps/generic/math-use-builtins.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/generic/math-use-builtins.h b/sysdeps/generic/math-use-builtins.h
index cc3e9f2201..19d2d1cf3c 100644
--- a/sysdeps/generic/math-use-builtins.h
+++ b/sysdeps/generic/math-use-builtins.h
@@ -30,6 +30,7 @@
 #include <math-use-builtins-ceil.h>
 #include <math-use-builtins-trunc.h>
 #include <math-use-builtins-round.h>
+#include <math-use-builtins-roundeven.h>
 #include <math-use-builtins-copysign.h>
 #include <math-use-builtins-sqrt.h>
 #include <math-use-builtins-fma.h>