separate inf and nan checks

This commit is contained in:
Irlan 2018-05-18 02:03:00 -03:00
parent 2d5f3e4d78
commit 5a64ffea65

View File

@ -23,6 +23,16 @@
#include <cstdlib> // For abs() with integral types
#include <bounce/common/settings.h>
inline bool b3IsInf(float32 x)
{
return std::isinf(x);
}
inline bool b3IsNaN(float32 x)
{
return std::isnan(x);
}
inline bool b3IsValid(float32 fx)
{
i32 ix = *(i32*)(&fx);