diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2014-02-04 20:49:53 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2014-02-04 20:49:53 +0000 |
commit | d581a24a365c5a8650ab5774f81de9e85eab640d (patch) | |
tree | a3a9e0c4d0cc380a2ac741f0845672b0559aa399 /newlib/libm/mathfp/sf_numtest.c | |
parent | f3852ab7dbb63ca8e5d53e87d3ced0a796fad1b3 (diff) | |
download | cygnal-d581a24a365c5a8650ab5774f81de9e85eab640d.tar.gz cygnal-d581a24a365c5a8650ab5774f81de9e85eab640d.tar.bz2 cygnal-d581a24a365c5a8650ab5774f81de9e85eab640d.zip |
2014-02-04 Matthias Braun <matze@braunis.de>
* libm/mathfp/sf_numtest.c: Fix NaN/Inf detection logic.
Diffstat (limited to 'newlib/libm/mathfp/sf_numtest.c')
-rw-r--r-- | newlib/libm/mathfp/sf_numtest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libm/mathfp/sf_numtest.c b/newlib/libm/mathfp/sf_numtest.c index 675086c41..00bab3a9d 100644 --- a/newlib/libm/mathfp/sf_numtest.c +++ b/newlib/libm/mathfp/sf_numtest.c @@ -40,7 +40,7 @@ _DEFUN (numtestf, (float), } /* Check for not a number or infinity. */ - if (exp == 0x7f8) + if (exp == 0xff) { if(wx & 0x7fffff) return (NAN); |