Mercurial > hg > octave-lyh
diff liboctave/oct-inttypes.h @ 9003:0631d397fbe0
replace lo_ieee_isnan by xisnan, add missing includes
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Sat, 21 Mar 2009 20:46:21 +0100 |
parents | d1eab3ddb02d |
children | 11844593875a |
line wrap: on
line diff
--- a/liboctave/oct-inttypes.h +++ b/liboctave/oct-inttypes.h @@ -33,11 +33,11 @@ #include "lo-traits.h" #include "lo-math.h" #include "oct-types.h" -#include "lo-ieee.h" #include "lo-mappers.h" #ifdef OCTAVE_INT_USE_LONG_DOUBLE inline long double xround (long double x) { return roundl (x); } +inline long double xisnan (long double x) { return xisnan (static_cast<double> (x)); } #endif // Undefine min/max if needed (this may happen under Windows) @@ -289,7 +289,7 @@ // Compute proper thresholds. static const S thmin = compute_threshold (static_cast<S> (min_val ()), min_val ()); static const S thmax = compute_threshold (static_cast<S> (max_val ()), max_val ()); - if (lo_ieee_isnan (value)) + if (xisnan (value)) { fnan = true; return static_cast<T> (0);