diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2013-04-02 13:51:02 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2013-04-02 13:51:02 +0200 |
commit | 572676160d5639edc0ecb663147bd291841458d1 (patch) | |
tree | 26abea75b21e81f568075075249aa3dbedad20c7 /sysdeps/generic | |
parent | 60c414c346a1d5ef0510ffbdc0ab75f288ee4d3f (diff) | |
download | glibc-572676160d5639edc0ecb663147bd291841458d1.tar.gz |
New <math.h> macro named issignaling to check for a signaling NaN (sNaN).
It is based on draft TS 18661 and currently enabled as a GNU extension.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r-- | sysdeps/generic/math-tests.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/generic/math-tests.h b/sysdeps/generic/math-tests.h index 76f738ee99..da8747a944 100644 --- a/sysdeps/generic/math-tests.h +++ b/sysdeps/generic/math-tests.h @@ -34,3 +34,9 @@ (sizeof (x) == sizeof (float) ? SNAN_TESTS_float \ : sizeof (x) == sizeof (double) ? SNAN_TESTS_double \ : SNAN_TESTS_long_double) + +/* Indicate whether to run tests involving type casts of sNaN values. These + are run unless overridden. */ +#ifndef SNAN_TESTS_TYPE_CAST +# define SNAN_TESTS_TYPE_CAST 1 +#endif |