
4 Aug
2006
4 Aug
'06
10:08 a.m.
There were a few typos. Here is the correct code. const boost::uint32_t signbit_mask = binary_cast<boost::uint32_t>(1.0f) ^ binary_cast<boost::uint32_t>(-1.0f); inline bool signbit_impl(float x) { return binary_cast<boost::uint32_t>(x) & signbit_mask; } inline bool signbit_impl(double x) { return signbit_impl(static_cast<float>(x)); } inline bool signbit_impl(long double x) { return signbit_impl(static_cast<float>(x)); } --Johan Råde