#include <libminifloat.h>
Definition at line 71 of file libminifloat.h.
◆ ReduceMantissaToNbitsRounding()
MiniFloatConverter::ReduceMantissaToNbitsRounding::ReduceMantissaToNbitsRounding |
( |
int |
bits | ) |
|
|
inline |
◆ operator()()
float MiniFloatConverter::ReduceMantissaToNbitsRounding::operator() |
( |
float |
f | ) |
const |
|
inline |
Definition at line 77 of file libminifloat.h.
78 constexpr uint32_t low23 = (0x007FFFFF);
79 constexpr uint32_t hi9 = (0xFF800000);
86 uint32_t mantissa = (
conv.i32 & low23) >>
shift;
References conv, f, mask, maxn, and shift.
◆ mask
const uint32_t MiniFloatConverter::ReduceMantissaToNbitsRounding::mask |
|
private |
◆ maxn
const uint32_t MiniFloatConverter::ReduceMantissaToNbitsRounding::maxn |
|
private |
◆ shift
const int MiniFloatConverter::ReduceMantissaToNbitsRounding::shift |
|
private |
◆ test
const uint32_t MiniFloatConverter::ReduceMantissaToNbitsRounding::test |
|
private |