NumericUtils< half_t > Struct Reference

NumericUtils&lt; half_t &gt; Struct Reference#

Composable Kernel: ck::NumericUtils< half_t > Struct Reference
ck::NumericUtils< half_t > Struct Reference

#include <numeric_utils.hpp>

Public Types

using bitwise_type = uint16_t

Static Public Attributes

static constexpr int exp = 5
static constexpr int mant = 10
static constexpr int bias = 15
static constexpr uint16_t nan_mask = 0x7C00
static constexpr uint16_t head_mask = 0xFC00
static constexpr uint16_t mant_mask = 0x3FF
static constexpr uint16_t exp_mask = 0x1F
static constexpr uint32_t Inf = 0x7C00
static constexpr uint32_t NegInf = 0xFC00
static constexpr uint32_t NaN = 0x7C01
static constexpr uint32_t Neg0 = 0x8000
static constexpr bool has_inf = true

Member Typedef Documentation

◆ bitwise_type

using ck::NumericUtils< half_t >::bitwise_type = uint16_t

Member Data Documentation

◆ bias

int ck::NumericUtils< half_t >::bias = 15
staticconstexpr

◆ exp

int ck::NumericUtils< half_t >::exp = 5
staticconstexpr

◆ exp_mask

uint16_t ck::NumericUtils< half_t >::exp_mask = 0x1F
staticconstexpr

◆ has_inf

bool ck::NumericUtils< half_t >::has_inf = true
staticconstexpr

◆ head_mask

uint16_t ck::NumericUtils< half_t >::head_mask = 0xFC00
staticconstexpr

◆ Inf

uint32_t ck::NumericUtils< half_t >::Inf = 0x7C00
staticconstexpr

◆ mant

int ck::NumericUtils< half_t >::mant = 10
staticconstexpr

◆ mant_mask

uint16_t ck::NumericUtils< half_t >::mant_mask = 0x3FF
staticconstexpr

◆ NaN

uint32_t ck::NumericUtils< half_t >::NaN = 0x7C01
staticconstexpr

◆ nan_mask

uint16_t ck::NumericUtils< half_t >::nan_mask = 0x7C00
staticconstexpr

◆ Neg0

uint32_t ck::NumericUtils< half_t >::Neg0 = 0x8000
staticconstexpr

◆ NegInf

uint32_t ck::NumericUtils< half_t >::NegInf = 0xFC00
staticconstexpr

The documentation for this struct was generated from the following file: