XeTLA v0.3.6
IntelĀ® Xe Templates for Linear Algebra - API Definition Document
 
Loading...
Searching...
No Matches
gpu::xetla::uint_type< T > Struct Template Reference

Get the unit representation of type T. More...

#include <base_types.hpp>

Public Types

using type = typename std::conditional< is_uint8, uint8_t, typename std::conditional< is_uint16, uint16_t, typename std::conditional< is_uint32, uint32_t, typename std::conditional< is_uint64, uint64_t, void >::type >::type >::type >::type
 

Static Public Attributes

static constexpr bool is_uint8 = sizeof(T) == 1
 
static constexpr bool is_uint16 = sizeof(T) == 2
 
static constexpr bool is_uint32 = sizeof(T) == 4
 
static constexpr bool is_uint64 = sizeof(T) == 8
 

Detailed Description

template<typename T>
struct gpu::xetla::uint_type< T >

Get the unit representation of type T.

Member Typedef Documentation

◆ type

template<typename T >
using gpu::xetla::uint_type< T >::type = typename std::conditional<is_uint8, uint8_t, typename std::conditional<is_uint16, uint16_t, typename std::conditional<is_uint32, uint32_t, typename std::conditional<is_uint64, uint64_t, void>::type>::type>::type>::type

Member Data Documentation

◆ is_uint16

template<typename T >
constexpr bool gpu::xetla::uint_type< T >::is_uint16 = sizeof(T) == 2
staticconstexpr

◆ is_uint32

template<typename T >
constexpr bool gpu::xetla::uint_type< T >::is_uint32 = sizeof(T) == 4
staticconstexpr

◆ is_uint64

template<typename T >
constexpr bool gpu::xetla::uint_type< T >::is_uint64 = sizeof(T) == 8
staticconstexpr

◆ is_uint8

template<typename T >
constexpr bool gpu::xetla::uint_type< T >::is_uint8 = sizeof(T) == 1
staticconstexpr