diff options
author | Joseph Myers <joseph@codesourcery.com> | 2017-06-22 23:03:38 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2017-06-22 23:03:38 +0000 |
commit | 8d375dafe2caa85add7d5ef5bf8c8d421353df7b (patch) | |
tree | 24c05bae8210d360408dc7af829539b19e2ccf5c /sysdeps/unix/sysv/linux/accept.c | |
parent | f20079d219d7973ab43712adad6268901dc0eac3 (diff) | |
download | glibc-8d375dafe2caa85add7d5ef5bf8c8d421353df7b.tar glibc-8d375dafe2caa85add7d5ef5bf8c8d421353df7b.tar.gz glibc-8d375dafe2caa85add7d5ef5bf8c8d421353df7b.tar.bz2 glibc-8d375dafe2caa85add7d5ef5bf8c8d421353df7b.zip |
Support _Float128 in math-tests.h.
This patch makes math-tests.h, as used to describe support of given
floating-point types for sNaNs, rounding modes and exceptions, handle
distinguishing _Float128 from long double. This is needed for x86_64,
where if building with GCC 6 or earlier there is no __builtin_nansq,
so no way to get a signaling NaN of _Float128 type, so associated
tests cannot be run (although glibc itself works fine, as there is
never any need to create such an sNaN with a built-in function inside
glibc).
Tested for x86_64 (in conjunction with float128 patches).
* sysdeps/generic/math-tests.h: Include <bits/floatn.h>.
(MATH_TESTS_TG): New macro.
(SNAN_TESTS_float128): Likewise.
(ROUNDING_TESTS_float128): Likewise.
(EXCEPTION_TESTS_float128): Likewise.
(SNAN_TESTS): Define using MATH_TESTS_TG.
(ROUNDING_TESTS): Likewise.
(EXCEPTION_TESTS): Likewise.
Diffstat (limited to 'sysdeps/unix/sysv/linux/accept.c')
0 files changed, 0 insertions, 0 deletions