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::constant< v >
struct  ck::integral_constant< T, v >

Namespaces

namespace  ck

Typedefs

template<bool B>
using ck::bool_constant = integral_constant<bool, B>
using ck::true_type = bool_constant<true>
using ck::false_type = bool_constant<false>

Functions

template<typename TX, TX X, typename TY, TY Y>
__host__ __device__ constexpr auto ck::operator+ (integral_constant< TX, X >, integral_constant< TY, Y >)
template<typename TX, TX X, typename TY, TY Y>
__host__ __device__ constexpr auto ck::operator- (integral_constant< TX, X >, integral_constant< TY, Y >)
template<typename TX, TX X, typename TY, TY Y>
__host__ __device__ constexpr auto ck::operator* (integral_constant< TX, X >, integral_constant< TY, Y >)
template<typename TX, TX X, typename TY, TY Y>
__host__ __device__ constexpr auto ck::operator/ (integral_constant< TX, X >, integral_constant< TY, Y >)
template<typename TX, TX X, typename TY, TY Y>
__host__ __device__ constexpr auto ck::operator% (integral_constant< TX, X >, integral_constant< TY, Y >)