sign.cpp 94 B

12345
  1. template <>
  2. inline bool sign(float const & f)
  3. {
  4. return (*((int *)(&f)) & 0x80000000) == 0;
  5. }