18 #if BOOST_LANG_CUDA && BOOST_COMP_CLANG_CUDA || BOOST_COMP_HIP
26 template<
typename Integral,
typename = std::enable_if_t<std::is_
integral_v<Integral>>>
29 return (a + b - 1) / b;
33 template<
typename Integral,
typename = std::enable_if_t<std::is_
integral_v<Integral>>>
39 for(Integral i = 1; i < n; i++)
45 template<
typename Integral,
typename = std::enable_if_t<std::is_
integral_v<Integral>>>
50 Integral R = value + 1;
53 Integral
const M = (L + R) / 2;
#define ALPAKA_FN_HOST_ACC
constexpr ALPAKA_FN_HOST_ACC auto divCeil(Integral a, Integral b) -> Integral
Returns the ceiling of a / b, as integer.
constexpr ALPAKA_FN_HOST_ACC auto intPow(Integral base, Integral n) -> Integral
Computes the nth power of base, in integers.
constexpr ALPAKA_FN_HOST_ACC auto nthRootFloor(Integral value, Integral n) -> Integral
Computes the floor of the nth root of value, in integers.