|
gem5 [DEVELOP-FOR-25.1]
|
#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 | scaleMul (const float &f) |
| void | scaleDiv (const float &f) |
| void | omodModifier (unsigned omod) |
| void | clamp (bool do_clamp) |
| void | fabs () |
| void | neg () |
Static Public Member Functions | |
| static constexpr int | size () |
Public Attributes | |
| uint32_t | data = 0 |
Private Member Functions | |
| uint32_t | float_to_mxfp (float f) |
Private Attributes | |
| mxfpRoundingMode | mode = roundTiesToEven |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 228 of file mxfp.hh.
Referenced by gem5::VegaISA::Inst_VOP3__V_CVT_PK_BF16_F32::execute(), and gem5::VegaISA::Inst_VOP3__V_CVT_PK_F16_F32::execute().
|
inline |
|
inlineprivate |
Definition at line 255 of file mxfp.hh.
Referenced by gem5::AMDGPU::mxfp< fp4_e2m1_info >::mxfp(), and gem5::AMDGPU::mxfp< fp4_e2m1_info >::operator=().
|
inline |
Definition at line 115 of file mxfp.hh.
Referenced by gem5::VegaISA::Inst_VOP3__V_CVT_SR_BF16_F32::execute(), gem5::VegaISA::Inst_VOP3__V_CVT_SR_BF8_F32::execute(), gem5::VegaISA::Inst_VOP3__V_CVT_SR_F16_F32::execute(), gem5::VegaISA::Inst_VOP3__V_CVT_SR_FP8_F32::execute(), gem5::AMDGPU::mxfp< fp4_e2m1_info >::scaleDiv(), and gem5::AMDGPU::mxfp< fp4_e2m1_info >::scaleMul().
|
inline |
|
inline |
Definition at line 209 of file mxfp.hh.
Referenced by gem5::VegaISA::Inst_VOP3__V_CVT_PK_BF16_F32::execute(), and gem5::VegaISA::Inst_VOP3__V_CVT_PK_F16_F32::execute().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 166 of file mxfp.hh.
Referenced by gem5::AMDGPU::mxfp< fp4_e2m1_info >::omodModifier().
|
inline |
Definition at line 130 of file mxfp.hh.
Referenced by gem5::AMDGPU::mxfp< fp4_e2m1_info >::omodModifier().
|
inline |
|
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_VOP1__V_CVT_F32_BF16::execute(), gem5::VegaISA::Inst_VOP1__V_CVT_F32_BF8::execute(), gem5::VegaISA::Inst_VOP1__V_CVT_F32_FP8::execute(), gem5::VegaISA::Inst_VOP1__V_CVT_PK_F32_BF8::execute(), gem5::VegaISA::Inst_VOP1__V_CVT_PK_F32_FP8::execute(), gem5::VegaISA::Inst_VOP2__V_DOT2C_F32_BF16::execute(), gem5::VegaISA::Inst_VOP3__V_CVT_F16_F32::execute(), gem5::VegaISA::Inst_VOP3__V_CVT_F32_BF16::execute(), gem5::VegaISA::Inst_VOP3__V_CVT_PK_BF16_F32::execute(), gem5::VegaISA::Inst_VOP3__V_CVT_PK_BF8_F32::execute(), gem5::VegaISA::Inst_VOP3__V_CVT_PK_F16_F32::execute(), gem5::VegaISA::Inst_VOP3__V_CVT_PK_FP8_F32::execute(), gem5::VegaISA::Inst_VOP3__V_CVT_SR_BF16_F32::execute(), gem5::VegaISA::Inst_VOP3__V_CVT_SR_F16_F32::execute(), gem5::VegaISA::Inst_VOP3__V_DOT2C_F32_BF16::execute(), and gem5::VegaISA::Inst_VOP3P__V_DOT2_F32_BF16::execute().
|
private |