diff options
author | Sujoy Saraswati <sujoy.saraswati@hpe.com> | 2015-12-19 04:57:57 +0000 |
---|---|---|
committer | Sujoy Saraswati <ssaraswati@gcc.gnu.org> | 2015-12-19 04:57:57 +0000 |
commit | a278e2017797a7ba7f807ca93ce0c06a37c8bdaf (patch) | |
tree | ec918de3ae6e7c63dd169f8846d57718664be040 /gcc/real.c | |
parent | d3ccfbb91e622532f44d298c3764d7ec9e2ef5a1 (diff) | |
download | gcc-a278e2017797a7ba7f807ca93ce0c06a37c8bdaf.zip gcc-a278e2017797a7ba7f807ca93ce0c06a37c8bdaf.tar.gz gcc-a278e2017797a7ba7f807ca93ce0c06a37c8bdaf.tar.bz2 |
This series of patches fix PR61441. This patch adds REAL_VALUE_ISSIGNALING_NAN.
Bootstrapped & regression-tested on x86_64-linux-gnu.
gcc/
* real.c (real_issignaling_nan): New.
* real.h (real_issignaling_nan, REAL_VALUE_ISSIGNALING_NAN): New.
From-SVN: r231848
Diffstat (limited to 'gcc/real.c')
-rw-r--r-- | gcc/real.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1195,6 +1195,12 @@ real_isnan (const REAL_VALUE_TYPE *r) return (r->cl == rvc_nan); } +/* Determine whether a floating-point value X is a signaling NaN. */ +bool real_issignaling_nan (const REAL_VALUE_TYPE *r) +{ + return real_isnan (r) && r->signalling; +} + /* Determine whether a floating-point value X is finite. */ bool |