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:
parent
59a6e6f613
commit
a9ab69df0a
9 changed files with 338 additions and 52 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue