fix config macro name

This commit is contained in:
bolero-MURAKAMI 2013-01-13 17:41:45 +09:00
parent d1379ff155
commit 1ed18456b3
13 changed files with 64 additions and 20 deletions

View file

@ -29,7 +29,7 @@ namespace sprout {
ceil(FloatType x) {
return sprout::math::isinf(x) ? x
: std::numeric_limits<std::uintmax_t>::max() < x || std::numeric_limits<std::uintmax_t>::max() < -x
? SPROUT_MATH_DETAIL_INT_CONVERSION_OVERFLOW(std::domain_error("ceil: Sorry, not implemented."), x)
? SPROUT_MATH_THROW_LARGE_FLOAT_ROUNDING(std::domain_error("ceil: large float rounding."), x)
: x < 0 ? -static_cast<FloatType>(static_cast<std::uintmax_t>(-x))
: sprout::math::detail::ceil_impl(x, static_cast<FloatType>(static_cast<std::uintmax_t>(x)))
;