Mercurial > forge
changeset 12604:218b5b97d888 octave-forge
use isnan() instead of __isnan()
author | schloegl |
---|---|
date | Thu, 23 Apr 2015 11:53:02 +0000 |
parents | 96858d80bb1e |
children | 27537bc57da4 |
files | extra/NaN/src/histo_mex.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/extra/NaN/src/histo_mex.cpp Thu Apr 23 09:23:20 2015 +0000 +++ b/extra/NaN/src/histo_mex.cpp Thu Apr 23 11:53:02 2015 +0000 @@ -109,7 +109,7 @@ float f1,f2; f1 = ((float*)Sort.Table)[ix1]; f2 = ((float*)Sort.Table)[ix2]; - z = __isnanf(f1) - __isnanf(f2); + z = isnan(f1) - isnan(f2); if (z) break; if (f1<f2) z = -1; @@ -121,7 +121,7 @@ double f1,f2; f1 = ((double*)Sort.Table)[ix1]; f2 = ((double*)Sort.Table)[ix2]; - z = __isnan(f1) - __isnan(f2); + z = isnan(f1) - isnan(f2); if (z) break; if (f1<f2) z = -1;