integral_constant.hpp File Reference

integral_constant.hpp File Reference#

Composable Kernel: integral_constant.hpp File Reference
integral_constant.hpp File Reference

Go to the source code of this file.

Classes

struct  ck_tile::constant< v >
struct  ck_tile::integral_constant< T, v >
struct  ck_tile::is_constant< T >
struct  ck_tile::is_constant< constant< v > >

Namespaces

namespace  ck_tile

Macros

#define CK_TILE_LEFT_UNARY_OP(OP)
#define CK_TILE_BINARY_OP(OP)

Typedefs

template<index_t v>
using ck_tile::number = constant<v>
template<long_index_t v>
using ck_tile::long_number = constant<v>
template<bool b>
using ck_tile::bool_constant = constant<b>

Variables

template<typename T>
constexpr bool ck_tile::is_constant_v = is_constant<T>::value

Macro Definition Documentation

◆ CK_TILE_BINARY_OP

#define CK_TILE_BINARY_OP ( OP)
Value:
template <auto x, auto y> \
CK_TILE_HOST_DEVICE constexpr auto operator OP(constant<x>, constant<y>) \
{ \
return constant<(x OP y)>{}; \
}
#define CK_TILE_HOST_DEVICE
Definition config.hpp:42

◆ CK_TILE_LEFT_UNARY_OP

#define CK_TILE_LEFT_UNARY_OP ( OP)
Value:
template <auto x> \
CK_TILE_HOST_DEVICE constexpr auto operator OP(constant<x>) \
{ \
return constant<(OP x)>{}; \
}