Added isnan.c
This commit is contained in:
parent
246495fe4c
commit
f30616ce42
11
lang/cem/libcc.ansi/math/isnan.c
Normal file
11
lang/cem/libcc.ansi/math/isnan.c
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
__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;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user