diff options
author | Paul E. Murphy <murphyp@linux.vnet.ibm.com> | 2017-05-04 17:00:33 -0300 |
---|---|---|
committer | Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com> | 2017-05-15 10:23:28 -0300 |
commit | 81f26b53b5e9a3520fb3cfd0be743339e13dfb56 (patch) | |
tree | 13b24c1c3a98b50ccbd0d8a6ea20edf34716284e /sysdeps/generic/math_private_calls.h | |
parent | 33d523d7f8c8ffdeecd03df452d80bfda3bc25d4 (diff) | |
download | glibc-81f26b53b5e9a3520fb3cfd0be743339e13dfb56.tar.gz glibc-81f26b53b5e9a3520fb3cfd0be743339e13dfb56.tar.xz glibc-81f26b53b5e9a3520fb3cfd0be743339e13dfb56.zip |
float128: Add private _Float128 declarations for libm.
Add the necessary bits to the private headers to support building the _Float128 libm functions. A local override for float.h is provided to include the missing *FLT128 macros implied by TS 18661-3 for this type when compiling prior to GCC 7. * include/complex.h (__kernel_casinhf128): New declaration. * include/float.h: New file. * include/math.h (__finitef128): Add a hidden def. (__isinff128): Likewise. (__isnanf128): Likewise. (__fpclassify): Likewise. (__issignalling): Likewise. (__expf128): Likewise. (__expm1f128): Likewise. * sysdeps/generic/fix-fp-int-convert-overflow.h: (FIX_FLT128_LONG_CONVERT_OVERFLOW): New macro. (FIX_FLT128_LLONG_CONVERT_OVERFLOW): Likewise. * sysdeps/generic/math-type-macros-float128.h: New file. * sysdeps/generic/math_private.h: Include bits/floatn.h and math_private_calls.h for _Float128. (__isinff128): New inline implementation used when GCC < 7.0, since in this case __builtin_isinf_sign is broken. (fabsf128): New inline implementation that calls the builtin. (__EXPR_FLT128): New macro. (min_of_type): Optionally include _Float128 types too. * sysdeps/generic/math_private_calls.h (__kernel_sincos): Declare for _Float128. (__kernel_rem_pio2): Likewise. * sysdeps/ieee754/ldbl-opt/s_sin.c: (__DECL_SIMD_sincos_disablef128): New macro.
Diffstat (limited to 'sysdeps/generic/math_private_calls.h')
-rw-r--r-- | sysdeps/generic/math_private_calls.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/generic/math_private_calls.h b/sysdeps/generic/math_private_calls.h index 8c1d304a8f..34bbd5e684 100644 --- a/sysdeps/generic/math_private_calls.h +++ b/sysdeps/generic/math_private_calls.h @@ -64,12 +64,12 @@ extern _Mdouble_ __MSUF (__kernel_sin) (_Mdouble_, _Mdouble_, int); extern _Mdouble_ __MSUF (__kernel_cos) (_Mdouble_, _Mdouble_); extern _Mdouble_ __MSUF (__kernel_tan) (_Mdouble_, _Mdouble_, int); -#if defined __MATH_DECLARING_LONG_DOUBLE +#if defined __MATH_DECLARING_LONG_DOUBLE || defined __MATH_DECLARING_FLOATN extern void __MSUF (__kernel_sincos) (_Mdouble_, _Mdouble_, _Mdouble_ *, _Mdouble_ *, int); #endif -#if !defined __MATH_DECLARING_LONG_DOUBLE +#if !defined __MATH_DECLARING_LONG_DOUBLE || defined __MATH_DECLARING_FLOATN extern int __MSUF (__kernel_rem_pio2) (_Mdouble_ *, _Mdouble_ *, int, int, int, const int32_t *); #endif |