This commit is contained in:
igor-m
2014-04-11 21:55:53 +02:00
parent af3db0bcd2
commit 0f6e23c2fe

View File

@@ -13,7 +13,7 @@
*/
int isinff (float x)
{
long lx = *(long*) &x;
long lx = *(unsigned long*) &x;
long v = (lx & 0x7fffffff) ^ 0x7f800000;
return ~((v | -v) >> 31) & (lx >> 30);
}