gem5 v24.0.0.0
|
#include <mxfp.hh>
Public Member Functions | |
mxfp ()=default | |
mxfp (float f) | |
mxfp (const uint32_t &raw) | |
mxfp (const mxfp &f) | |
mxfp & | operator= (const float &f) |
mxfp & | operator= (const mxfp &f) |
operator float () const | |
FMT | getFmt () const |
void | setFmt (FMT in) |
void | scale (const float &f) |
Static Public Member Functions | |
static constexpr int | size () |
Public Attributes | |
uint32_t | data = 0 |
Private Member Functions | |
uint32_t | float_to_mxfp (float f) |
uint32_t | float_to_mxfp_nocheck (float f) |
Private Attributes | |
mxfpRoundingMode | mode = roundTiesToEven |
|
default |
|
inline |
Definition at line 56 of file mxfp.hh.
References gem5::AMDGPU::mxfp< FMT >::data, gem5::ArmISA::f, and gem5::AMDGPU::mxfp< FMT >::float_to_mxfp().
|
inline |
Definition at line 62 of file mxfp.hh.
References gem5::AMDGPU::mxfp< FMT >::data.
|
inline |
Definition at line 71 of file mxfp.hh.
References gem5::AMDGPU::convertMXFP(), gem5::AMDGPU::mxfp< FMT >::data, and gem5::ArmISA::f.
|
inlineprivate |
Definition at line 160 of file mxfp.hh.
References gem5::ArmISA::f, gem5::AMDGPU::mxfp< FMT >::float_to_mxfp_nocheck(), std::isinf(), and std::isnan().
Referenced by gem5::AMDGPU::mxfp< FMT >::mxfp(), and gem5::AMDGPU::mxfp< FMT >::operator=().
|
inlineprivate |
Definition at line 176 of file mxfp.hh.
References gem5::AMDGPU::convertMXFP(), gem5::ArmISA::f, gem5::AMDGPU::binary32_u::fp32, and gem5::AMDGPU::mxfp< FMT >::mode.
Referenced by gem5::AMDGPU::mxfp< FMT >::float_to_mxfp().
|
inline |
Definition at line 115 of file mxfp.hh.
References gem5::AMDGPU::mxfp< FMT >::data.
Referenced by gem5::AMDGPU::mxfp< FMT >::scale().
|
inline |
Definition at line 94 of file mxfp.hh.
References gem5::AMDGPU::convertMXFP(), gem5::AMDGPU::mxfp< FMT >::data, gem5::AMDGPU::binary32_u::fp32, gem5::AMDGPU::mxfp< FMT >::mode, and gem5::AMDGPU::binary32_u::storage.
|
inline |
Definition at line 79 of file mxfp.hh.
References gem5::AMDGPU::mxfp< FMT >::data, gem5::ArmISA::f, and gem5::AMDGPU::mxfp< FMT >::float_to_mxfp().
|
inline |
Definition at line 86 of file mxfp.hh.
References gem5::AMDGPU::convertMXFP(), gem5::AMDGPU::mxfp< FMT >::data, and gem5::ArmISA::f.
|
inline |
Definition at line 129 of file mxfp.hh.
References gem5::AMDGPU::binary32_u::bias, gem5::AMDGPU::mxfp< FMT >::data, gem5::AMDGPU::binary32_u::exp, gem5::ArmISA::f, gem5::AMDGPU::binary32_u::fp32, gem5::AMDGPU::mxfp< FMT >::getFmt(), gem5::AMDGPU::max_exp(), and gem5::AMDGPU::min_exp().
|
inline |
Definition at line 123 of file mxfp.hh.
References gem5::AMDGPU::mxfp< FMT >::data.
|
inlinestaticconstexpr |
uint32_t gem5::AMDGPU::mxfp< FMT >::data = 0 |
Definition at line 112 of file mxfp.hh.
Referenced by gem5::VegaISA::Inst_VOP1__V_CVT_F16_F32::execute(), gem5::VegaISA::Inst_VOP3__V_CVT_F16_F32::execute(), gem5::VegaISA::Inst_VOP3__V_CVT_PK_FP8_F32::execute(), gem5::AMDGPU::mxfp< FMT >::getFmt(), gem5::AMDGPU::mxfp< FMT >::mxfp(), gem5::AMDGPU::mxfp< FMT >::mxfp(), gem5::AMDGPU::mxfp< FMT >::mxfp(), gem5::AMDGPU::mxfp< FMT >::operator float(), gem5::AMDGPU::mxfp< FMT >::operator=(), gem5::AMDGPU::mxfp< FMT >::operator=(), gem5::AMDGPU::mxfp< FMT >::scale(), and gem5::AMDGPU::mxfp< FMT >::setFmt().
|
private |
Definition at line 157 of file mxfp.hh.
Referenced by gem5::AMDGPU::mxfp< FMT >::float_to_mxfp_nocheck(), and gem5::AMDGPU::mxfp< FMT >::operator float().