mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-15 01:21:06 +00:00
81f26b53b5
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.
36 lines
1.5 KiB
C
36 lines
1.5 KiB
C
/* Fix for conversion of floating point to integer overflow. Generic version.
|
|
Copyright (C) 2015-2017 Free Software Foundation, Inc.
|
|
This file is part of the GNU C Library.
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Lesser General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
License along with the GNU C Library; if not, see
|
|
<http://www.gnu.org/licenses/>. */
|
|
|
|
#ifndef FIX_FP_INT_CONVERT_OVERFLOW_H
|
|
#define FIX_FP_INT_CONVERT_OVERFLOW_H 1
|
|
|
|
/* Define these macros to 1 to workaround conversions of out-of-range
|
|
floating-point numbers to integer types failing to raise the
|
|
"invalid" exception, or raising spurious "inexact" or other
|
|
exceptions. */
|
|
#define FIX_FLT_LONG_CONVERT_OVERFLOW 0
|
|
#define FIX_FLT_LLONG_CONVERT_OVERFLOW 0
|
|
#define FIX_DBL_LONG_CONVERT_OVERFLOW 0
|
|
#define FIX_DBL_LLONG_CONVERT_OVERFLOW 0
|
|
#define FIX_LDBL_LONG_CONVERT_OVERFLOW 0
|
|
#define FIX_LDBL_LLONG_CONVERT_OVERFLOW 0
|
|
#define FIX_FLT128_LONG_CONVERT_OVERFLOW 0
|
|
#define FIX_FLT128_LLONG_CONVERT_OVERFLOW 0
|
|
|
|
#endif /* fix-fp-int-convert-overflow.h */
|