]> git.ipfire.org Git - thirdparty/glibc.git/commit
Use GCC builtins for roundeven functions if desired.
authorShen-Ta Hsieh <ibmibmibm.tw@gmail.com>
Mon, 24 May 2021 01:43:12 +0000 (09:43 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 27 Jun 2021 14:56:57 +0000 (07:56 -0700)
commiteb9066203f6e07128d42f771def4b7ad37b25dc1
treeae5cce761a496d4d1b9ec2f911ec0bbc5638d007
parent1683249d17e14827b6579529742eb895027dfa84
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>
sysdeps/generic/math-use-builtins-roundeven.h [new file with mode: 0644]
sysdeps/generic/math-use-builtins.h
sysdeps/ieee754/dbl-64/s_roundeven.c
sysdeps/ieee754/float128/float128_private.h
sysdeps/ieee754/flt-32/s_roundevenf.c
sysdeps/ieee754/ldbl-128/s_roundevenl.c