d1cdb07719
they're not defined in the core: so putw() can call stdio stuff, for example. So the earlier concept of pureness isn't necessary. Rename accordingly.
12 lines
194 B
C
12 lines
194 B
C
__IsNan(double d)
|
|
{
|
|
#if defined(__vax) || defined(__pdp)
|
|
#else
|
|
float f = d;
|
|
|
|
if ((*((long*)&f) & 0x7f800000) == 0x7f800000 && (*((long*)&f) & 0x007fffff) != 0)
|
|
return 1;
|
|
#endif
|
|
return 0;
|
|
}
|