glm/experimental/sign.cpp
2010-04-29 12:26:58 +01:00

6 lines
94 B
C++

template <>
inline bool sign(float const & f)
{
return (*((int *)(&f)) & 0x80000000) == 0;
}