. use library function to parse memory string
[minix3.git] / lib / ack / math / isnan.c
blob97257f45bc86635c9230ccb6112de174fe645f48
1 int __IsNan(double d)
3 #if defined(vax) || defined(pdp)
4 #else
5 float f = d;
7 if ((*((long *) &f) & 0x7f800000) == 0x7f800000 &&
8 (*((long *) &f) & 0x007fffff) != 0) return 1;
9 #endif
10 return 0;