1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-10-05 13:00:00 +00:00

workaround for clang3.2 (binomial_distribution)

This commit is contained in:
bolero-MURAKAMI 2012-11-12 17:11:48 +09:00
commit a9ab69df0a
9 changed files with 338 additions and 52 deletions

View file

@ -43,7 +43,7 @@ namespace sprout {
ceil(IntType x) {
return sprout::math::detail::ceil(static_cast<double>(x));
}
} // namespacedetailmath
} // namespace detail
using NS_SPROUT_MATH_DETAIL::ceil;
} // namespace math

View file

@ -43,7 +43,7 @@ namespace sprout {
floor(IntType x) {
return sprout::math::detail::floor(static_cast<double>(x));
}
} // namespacedetailmath
} // namespace detail
using NS_SPROUT_MATH_DETAIL::floor;
} // namespace math

View file

@ -36,10 +36,10 @@ namespace sprout {
);
}
#ifdef SPROUT_WORKAROUND_NOT_TERMINATE_RECURSIVE_CONSTEXPR_FUNCTION_TEMPLATE
template<int D = 0, typename BuiltInUnsigned, SPROUT_RECURSIVE_FUNCTION_TEMPLATE_CONTINUE(D)>
template<int D = 16, typename BuiltInUnsigned, SPROUT_RECURSIVE_FUNCTION_TEMPLATE_CONTINUE(D)>
inline SPROUT_CONSTEXPR BuiltInUnsigned
gcd_binary_2_1(unsigned shifts, sprout::array<BuiltInUnsigned, 2> const& r, unsigned which);
template<int D = 0, typename BuiltInUnsigned, SPROUT_RECURSIVE_FUNCTION_TEMPLATE_BREAK(D)>
template<int D = 16, typename BuiltInUnsigned, SPROUT_RECURSIVE_FUNCTION_TEMPLATE_BREAK(D)>
inline SPROUT_CONSTEXPR BuiltInUnsigned
gcd_binary_2_1(unsigned shifts, sprout::array<BuiltInUnsigned, 2> const& r, unsigned which);
template<int D, typename BuiltInUnsigned, SPROUT_RECURSIVE_FUNCTION_TEMPLATE_CONTINUE(D)>

View file

@ -44,7 +44,7 @@ namespace sprout {
llround(IntType x) {
return static_cast<long long>(x);
}
} // namespacedetailmath
} // namespace detail
using NS_SPROUT_MATH_DETAIL::llround;
} // namespace math

View file

@ -44,7 +44,7 @@ namespace sprout {
lround(IntType x) {
return static_cast<long>(x);
}
} // namespacedetailmath
} // namespace detail
using NS_SPROUT_MATH_DETAIL::lround;
} // namespace math

View file

@ -49,7 +49,7 @@ namespace sprout {
round(IntType x) {
return sprout::math::detail::round(static_cast<double>(x));
}
} // namespacedetailmath
} // namespace detail
using NS_SPROUT_MATH_DETAIL::round;
} // namespace math

View file

@ -35,7 +35,7 @@ namespace sprout {
trunc(IntType x) {
return sprout::math::detail::trunc(static_cast<double>(x));
}
} // namespacedetailmath
} // namespace detail
using NS_SPROUT_MATH_DETAIL::trunc;
} // namespace math