fix nan/inf check function
This commit is contained in:
parent
b8ca0d3829
commit
4804e48f0b
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
inline bool b3IsValid(float32 fx)
|
inline bool b3IsValid(float32 fx)
|
||||||
{
|
{
|
||||||
u32 ix = *(u32*)(&fx);
|
i32 ix = *(i32*)(&fx);
|
||||||
return (ix & 0x7F800000) != 0x7F800000;
|
return (ix & 0x7F800000) != 0x7F800000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user