18#if ALPAKA_LANG_CUDA && ALPAKA_COMP_CLANG_CUDA || ALPAKA_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
ALPAKA_FN_HOST_ACC constexpr auto nthRootFloor(Integral value, Integral n) -> Integral
Computes the floor of the nth root of value, in integers.
ALPAKA_FN_HOST_ACC constexpr auto divCeil(Integral a, Integral b) -> Integral
Returns the ceiling of a / b, as integer.
ALPAKA_FN_HOST_ACC constexpr auto intPow(Integral base, Integral n) -> Integral
Computes the nth power of base, in integers.