source: trunk/minix/lib/ack/math/isnan.c@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 201 bytes
Line 
1int __IsNan(double d)
2{
3#if defined(vax) || defined(pdp)
4#else
5 float f = d;
6
7 if ((*((long *) &f) & 0x7f800000) == 0x7f800000 &&
8 (*((long *) &f) & 0x007fffff) != 0) return 1;
9#endif
10 return 0;
11}
Note: See TracBrowser for help on using the repository browser.