glm/experimental/sign.cpp

6 lines
94 B
C++
Raw Normal View History

2010-04-29 11:26:58 +00:00
template <>
inline bool sign(float const & f)
{
return (*((int *)(&f)) & 0x80000000) == 0;
}