Use GCC builtins for trunc functions if desired.
commit1ac9c1cf87216bf9f8ac4f7c9754d025d9f2c4ae
authorStefan Liebler <stli@linux.ibm.com>
Wed, 11 Dec 2019 14:09:22 +0000 (11 15:09 +0100)
committerStefan Liebler <stli@linux.ibm.com>
Wed, 11 Dec 2019 14:12:17 +0000 (11 15:12 +0100)
tree8c87cea663ef68ef46470f8d96a0c0c833062428
parent62560ee84095274bab1050817f42e782df226a17
Use GCC builtins for trunc functions if desired.

This patch is using the corresponding GCC builtin for truncf, trunc,
truncl and truncf128 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_trunc.c
sysdeps/ieee754/float128/float128_private.h
sysdeps/ieee754/flt-32/s_truncf.c
sysdeps/ieee754/ldbl-128/s_truncl.c
sysdeps/s390/fpu/math-use-builtins.h