alpaka
Abstraction Library for Parallel Kernel Acceleration
Utility.hpp File Reference
#include "alpaka/core/Common.hpp"
#include <type_traits>
#include <utility>

Go to the source code of this file.

Namespaces

 alpaka
 The alpaka accelerator library.
 
 alpaka::core
 

Functions

template<typename Integral >
constexpr ALPAKA_FN_HOST_ACC auto alpaka::core::divCeil (Integral a, Integral b) -> Integral
 Returns the ceiling of a / b, as integer. More...
 
template<typename Integral >
constexpr ALPAKA_FN_HOST_ACC auto alpaka::core::intPow (Integral base, Integral n) -> Integral
 Computes the nth power of base, in integers. More...
 
template<typename Integral >
constexpr ALPAKA_FN_HOST_ACC auto alpaka::core::nthRootFloor (Integral value, Integral n) -> Integral
 Computes the floor of the nth root of value, in integers. More...