16 #if defined(_MSC_VER) && (_MSC_VER < 1800)
23 return (x < T(0.0)) ? std::ceil(x - T(0.5)) : std::floor(x + T(0.5));
27 long int lround(
const T x)
29 return (
long int)((x < T(0.0)) ? (x - T(0.5)) : (x + T(0.5)));
33 long long int llround(
const T x)
35 return (
long long int)((x < T(0.0)) ? (x - T(0.5)) : (x + T(0.5)));
41 return std::log(x)/std::log(2.0);