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 >:

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 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 >
|
inlinestaticconstexpr |
◆ get_exponent() [2/2]
template<typename T >
|
inlinestaticconstexpr |
◆ get_mantissa()
template<typename T >
|
inlinestaticconstexpr |
◆ is_positive()
template<typename T >
|
inlinestaticconstexpr |
◆ is_subnormal()
template<typename T >
|
inlinestaticconstexpr |
Member Data Documentation
◆ exp_mask
template<typename T >
|
staticconstexpr |
The documentation for this struct was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/develop/include/ck_tile/core/numeric/mxfp_convert.hpp