another day, another __isNaN
This commit is contained in:
parent
fdfecd6860
commit
ada7ea055b
@ -31,7 +31,8 @@ __isNaN(double d)
|
|||||||
|
|
||||||
p = &d;
|
p = &d;
|
||||||
x = *(uvlong*)p;
|
x = *(uvlong*)p;
|
||||||
return (ulong)((x>>52)&0x7FF)==0x7FF && !__isInf(d, 0);
|
/* IEEE 754: exponent bits 0x7FF and non-zero mantissa */
|
||||||
|
return (x&uvinf) == uvinf && (x&~uvneginf) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
double
|
double
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user