Definition at line 107 of file computils.cxx.
◆ floaty_t()
floaty_t::floaty_t |
( |
float |
n = 0.0f | ) |
|
|
inline |
◆ negative()
bool floaty_t::negative |
( |
| ) |
const |
|
inline |
portable extraction of components sign
Definition at line 112 of file computils.cxx.
◆ raw_exponent()
int32_t floaty_t::raw_exponent |
( |
| ) |
const |
|
inline |
and an 8 bit exponent
Definition at line 117 of file computils.cxx.
117 {
return (
i >> 23) & 0xff; }
◆ raw_mantissa()
int32_t floaty_t::raw_mantissa |
( |
| ) |
const |
|
inline |
float has 23 bit mentissa
Definition at line 115 of file computils.cxx.
115 {
return i & ((1 << 23) - 1); }
The documentation for this union was generated from the following file: