about summary refs log tree commit diff
path: root/sysdeps/ieee754/float128/float128_private.h
diff options
context:
space:
mode:
authorShen-Ta Hsieh <ibmibmibm.tw@gmail.com>2021-05-24 09:43:12 +0800
committerH.J. Lu <hjl.tools@gmail.com>2021-06-27 07:56:57 -0700
commiteb9066203f6e07128d42f771def4b7ad37b25dc1 (patch)
treeae5cce761a496d4d1b9ec2f911ec0bbc5638d007 /sysdeps/ieee754/float128/float128_private.h
parent1683249d17e14827b6579529742eb895027dfa84 (diff)
downloadglibc-eb9066203f6e07128d42f771def4b7ad37b25dc1.tar.gz
glibc-eb9066203f6e07128d42f771def4b7ad37b25dc1.tar.xz
glibc-eb9066203f6e07128d42f771def4b7ad37b25dc1.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>
Diffstat (limited to 'sysdeps/ieee754/float128/float128_private.h')
-rw-r--r--sysdeps/ieee754/float128/float128_private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/ieee754/float128/float128_private.h b/sysdeps/ieee754/float128/float128_private.h
index 979138851b..b6b6d3d5fd 100644
--- a/sysdeps/ieee754/float128/float128_private.h
+++ b/sysdeps/ieee754/float128/float128_private.h
@@ -152,6 +152,8 @@
 #define USE_TRUNCL_BUILTIN USE_TRUNCF128_BUILTIN
 #undef USE_ROUNDL_BUILTIN
 #define USE_ROUNDL_BUILTIN USE_ROUNDF128_BUILTIN
+#undef USE_ROUNDEVENL_BUILTIN
+#define USE_ROUNDEVENL_BUILTIN USE_ROUNDEVENF128_BUILTIN
 #undef USE_COPYSIGNL_BUILTIN
 #define USE_COPYSIGNL_BUILTIN USE_COPYSIGNF128_BUILTIN
 #undef USE_FMAL_BUILTIN