/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/develop/include/ck/utility/math.hpp Source File#
math.hpp
Go to the documentation of this file.
190 template <typename X, typename... Ys, typename enable_if<sizeof...(Ys) >= 2, bool>::type = false>
203 template <typename X, typename... Ys, typename enable_if<sizeof...(Ys) >= 2, bool>::type = false>
__host__ constexpr __device__ auto next_power_of_two()
Definition: math.hpp:222
__host__ constexpr __device__ auto integer_least_multiple(X x, Y y)
Definition: math.hpp:78
__host__ constexpr __device__ auto integer_divide_ceil(X x, Y y)
Definition: math.hpp:72
__host__ constexpr __device__ T clamp(const T &x, const T &lowerbound, const T &upperbound)
Definition: math.hpp:148
__host__ constexpr __device__ auto integer_divide_floor(X x, Y y)
Definition: math.hpp:66
__host__ constexpr __device__ index_t gcd(index_t x, index_t y)
Definition: math.hpp:154
__host__ __device__ equal() -> equal< void, void >
FIXME: create macro to replace 'host device' and nothing more.
Definition: ck.hpp:267
Definition: integral_constant.hpp:20
Definition: type.hpp:177
Definition: math.hpp:56
__host__ constexpr __device__ T operator()(T a, T b) const
Definition: math.hpp:57
Definition: math.hpp:217
__host__ constexpr __device__ bool operator()(T x, T y) const
Definition: math.hpp:218
Definition: math.hpp:44
__host__ constexpr __device__ T operator()(T a, T b) const
Definition: math.hpp:45
Definition: math.hpp:50
__host__ constexpr __device__ T operator()(T a, T b) const
Definition: math.hpp:51
Definition: math.hpp:29
__host__ constexpr __device__ T operator()(T a, T b) const
Definition: math.hpp:30
Definition: math.hpp:34
__host__ constexpr __device__ auto operator()(const A &a, const B &b) const
Definition: math.hpp:36
Definition: math.hpp:23
__host__ constexpr __device__ T operator()(T a, T b) const
Definition: math.hpp:24
Definition: math.hpp:17
__host__ constexpr __device__ T operator()(T a) const
Definition: math.hpp:18