Use GCC builtins for copysign functions if desired.
commitf818afdd3b29d7eef2010448457c9f5c16e684cd
authorStefan Liebler <stli@linux.ibm.com>
Wed, 11 Dec 2019 14:09:24 +0000 (11 15:09 +0100)
committerStefan Liebler <stli@linux.ibm.com>
Wed, 11 Dec 2019 14:12:19 +0000 (11 15:12 +0100)
tree642a01b96f19ec7f6668f867ff82eb045688c949
parentf82996f8159981619ac7ed8a4c1838c2ad72ab61
Use GCC builtins for copysign functions if desired.

This patch is always using the corresponding GCC builtin for copysignf, copysign,
and is using the builtin for copysignl, copysignf128 if the USE_FUNCTION_BUILTIN
macros are defined to one in math-use-builtins.h.

Altough the long double version is enabled by default we still need
the macro and the alternative implementation as the _Float128 version
of the builtin is not available with all supported GCC versions.

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