numeric_utils< T > Struct Template Reference

numeric_utils&lt; T &gt; Struct Template Reference#

Composable Kernel: ck_tile::numeric_utils< T > Struct Template Reference
ck_tile::numeric_utils< T > Struct Template Reference

#include <mxfp_convert.hpp>

Inheritance diagram for ck_tile::numeric_utils< T >:
ck_tile::numeric_traits< T >

Public Types

using traits = numeric_traits<T>
using _numeric = numeric<T>
using raw_type = typename traits::bitwise_type

Static Public Member Functions

static constexpr raw_type get_exponent (raw_type x)
static constexpr raw_type get_exponent (const T &x)
static constexpr bool is_positive (raw_type x)
static constexpr bool is_subnormal (raw_type x)
static constexpr double get_mantissa (raw_type x)

Static Public Attributes

static constexpr int exp_mask = (1 << traits::exp) - 1
Static Public Attributes inherited from ck_tile::numeric_traits< T >
static constexpr int PackedSize = 1

Member Typedef Documentation

◆ _numeric

template<typename T>
using ck_tile::numeric_utils< T >::_numeric = numeric<T>

◆ raw_type

template<typename T>
using ck_tile::numeric_utils< T >::raw_type = typename traits::bitwise_type

◆ traits

template<typename T>
using ck_tile::numeric_utils< T >::traits = numeric_traits<T>

Member Function Documentation

◆ get_exponent() [1/2]

template<typename T>
constexpr raw_type ck_tile::numeric_utils< T >::get_exponent ( const T & x)
inlinestaticconstexpr

◆ get_exponent() [2/2]

template<typename T>
constexpr raw_type ck_tile::numeric_utils< T >::get_exponent ( raw_type x)
inlinestaticconstexpr

◆ get_mantissa()

template<typename T>
constexpr double ck_tile::numeric_utils< T >::get_mantissa ( raw_type x)
inlinestaticconstexpr

◆ is_positive()

template<typename T>
constexpr bool ck_tile::numeric_utils< T >::is_positive ( raw_type x)
inlinestaticconstexpr

◆ is_subnormal()

template<typename T>
constexpr bool ck_tile::numeric_utils< T >::is_subnormal ( raw_type x)
inlinestaticconstexpr

Member Data Documentation

◆ exp_mask

template<typename T>
int ck_tile::numeric_utils< T >::exp_mask = (1 << traits::exp) - 1
staticconstexpr

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