]> git.ipfire.org Git - thirdparty/glibc.git/commit
Use GCC builtins for rint functions if desired.
authorStefan Liebler <stli@linux.ibm.com>
Wed, 11 Dec 2019 14:09:20 +0000 (15:09 +0100)
committerStefan Liebler <stli@linux.ibm.com>
Wed, 11 Dec 2019 14:12:16 +0000 (15:12 +0100)
commita2a9b004297b777758420c952cb6eea5985d37fe
tree247d1784ddc3b3940b6e5439e19373d1c94fd930
parentae3577f607b50bf3ce9b0877e43ad2508c9da61b
Use GCC builtins for rint functions if desired.

This patch is using the corresponding GCC builtin for rintf, rint,
rintl and rintf128 if the USE_FUNCTION_BUILTIN macros are defined to one
in math-use-builtins.h.

This is the case for s390 if build with at least --march=z196 --mzarch.
Otherwise the generic implementation is used.  The code of the generic
implementation is not changed.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/generic/math-use-builtins.h
sysdeps/ieee754/dbl-64/s_rint.c
sysdeps/ieee754/float128/float128_private.h
sysdeps/ieee754/flt-32/s_rintf.c
sysdeps/ieee754/ldbl-128/s_rintl.c
sysdeps/s390/fpu/math-use-builtins.h