Mercurial > hg > octave-lyh
diff liboctave/lo-cieee.c @ 7814:87865ed7405f
Second set of single precision test code and fix of resulting bugs
author | David Bateman <dbateman@free.fr> |
---|---|
date | Mon, 02 Jun 2008 16:57:45 +0200 |
parents | 82be108cc558 |
children | 139f47cf17ab |
line wrap: on
line diff
--- a/liboctave/lo-cieee.c +++ b/liboctave/lo-cieee.c @@ -244,7 +244,7 @@ #if defined (HAVE_ISNAN) lo_ieee_float t; t.value = x; - return (isnan (x) && (t.word & 0xFFFF) == LO_IEEE_NA_FLOAT_LW) ? 1 : 0; + return (isnan (x) && (t.word == LO_IEEE_NA_FLOAT)) ? 1 : 0; #else return 0; #endif @@ -259,19 +259,19 @@ float lo_ieee_float_inf_value (void) { - return octave_Inf; + return octave_Float_Inf; } float lo_ieee_float_na_value (void) { - return octave_NA; + return octave_Float_NA; } float lo_ieee_float_nan_value (void) { - return octave_NaN; + return octave_Float_NaN; } #if ! (defined (signbit) || defined (HAVE_DECL_SIGNBIT)) && defined (HAVE_SIGNBIT)