Mercurial > forge
comparison extra/NaN/src/histo_mex.cpp @ 12573:5d4cdc6e7bec octave-forge
replace isnan with __isnan to fix cross-compilation with MXE
author | schloegl |
---|---|
date | Mon, 30 Mar 2015 20:48:51 +0000 |
parents | 6a419bec96bb |
children | be7bdefa4a1f |
comparison
equal
deleted
inserted
replaced
12572:22658fcb51e9 | 12573:5d4cdc6e7bec |
---|---|
107 } | 107 } |
108 case mxSINGLE_CLASS: { | 108 case mxSINGLE_CLASS: { |
109 float f1,f2; | 109 float f1,f2; |
110 f1 = ((float*)Sort.Table)[ix1]; | 110 f1 = ((float*)Sort.Table)[ix1]; |
111 f2 = ((float*)Sort.Table)[ix2]; | 111 f2 = ((float*)Sort.Table)[ix2]; |
112 switch (isnan(f1) + 2*isnan(f2)) { | 112 switch (__isnanf(f1) + 2*__isnanf(f2)) { |
113 case 0: | 113 case 0: |
114 if (f1<f2) z = -1; | 114 if (f1<f2) z = -1; |
115 else if (f1>f2) z = 1; | 115 else if (f1>f2) z = 1; |
116 case 3: | 116 case 3: |
117 break; | 117 break; |
122 } | 122 } |
123 case mxDOUBLE_CLASS: { | 123 case mxDOUBLE_CLASS: { |
124 double f1,f2; | 124 double f1,f2; |
125 f1 = ((double*)Sort.Table)[ix1]; | 125 f1 = ((double*)Sort.Table)[ix1]; |
126 f2 = ((double*)Sort.Table)[ix2]; | 126 f2 = ((double*)Sort.Table)[ix2]; |
127 switch (isnan(f1) + 2*isnan(f2)) { | 127 switch (__isnan(f1) + 2*__isnan(f2)) { |
128 case 0: | 128 case 0: |
129 if (f1<f2) z = -1; | 129 if (f1<f2) z = -1; |
130 else if (f1>f2) z = 1; | 130 else if (f1>f2) z = 1; |
131 case 3: | 131 case 3: |
132 break; | 132 break; |