The binary64 field layout and scale bounds, the assertions that pin them, the six entry points and the fract table. More...
#include "mmgr.h"Go to the source code of this file.
Data Structures | |
| struct | FractioCfg |
| Pins the two scale bounds to the values binary64 gives. More... | |
| struct | FractioNs |
| Type of the fract dispatch table. More... | |
Macros | |
| #define | MMGR_DBL_SIGN_MASK |
| The binary64 field layout: three masks, the sign shift, the two field widths, the two whole field values and the exponent bias. | |
| #define | MMGR_DBL_EXP_MASK |
| #define | MMGR_DBL_MANT_MASK |
| #define | MMGR_DBL_SIGN_SHIFT |
| #define | MMGR_DBL_MANT_BITS |
| #define | MMGR_DBL_EXP_BITS |
| #define | MMGR_DBL_SIGN_ONE |
| #define | MMGR_DBL_EXP_ALL |
| #define | MMGR_DBL_BIAS |
| #define | MMGR_DBL_BITS |
| The width of a double in bits, bytes and embed_word units. | |
| #define | MMGR_DBL_BYTES |
| #define | MMGR_DBL_WORDS |
| #define | MMGR_DBL_SCALE_MAX |
| Pins the target's double to the width and storage this file assumes. | |
| #define | MMGR_DBL_SCALE_MIN |
Functions | |
| embed_u64 | mmgr_fract_sign (const FractioCfg *args) |
| Returns the sign bit of args->bits. | |
| embed_u64 | mmgr_fract_exp (const FractioCfg *args) |
| Returns the exponent field of args->bits. | |
| embed_u64 | mmgr_fract_mant (const FractioCfg *args) |
| Returns the mantissa field of args->bits. | |
| embed_u64 | mmgr_fract_merge (const FractioCfg *args) |
| Packs args->sign, args->exp and args->mant into one bit pattern. | |
| double | mmgr_fract_from_bits (const FractioCfg *args) |
| Reads the union as a double. | |
| embed_u64 | mmgr_fract_to_bits (const FractioCfg *args) |
| Reads the union as a bit pattern. | |
Variables | |
| static const FractioNs | fract |
| Dispatch table instance named fract, whose members are the mmgr_fract_ entries. | |
The binary64 field layout and scale bounds, the assertions that pin them, the six entry points and the fract table.
Definition in file fractio.h.
| #define MMGR_DBL_SIGN_MASK |
The binary64 field layout: three masks, the sign shift, the two field widths, the two whole field values and the exponent bias.
| #define MMGR_DBL_MANT_MASK |
| #define MMGR_DBL_MANT_BITS |
| #define MMGR_DBL_SIGN_ONE |
| #define MMGR_DBL_EXP_ALL |
| #define MMGR_DBL_BIAS |
| #define MMGR_DBL_BITS |
The width of a double in bits, bytes and embed_word units.
| #define MMGR_DBL_SCALE_MAX |
Pins the target's double to the width and storage this file assumes.
Pins the field constants above against each other.
The range of powers of two a double can carry once the mantissa is treated as an integer.
| embed_u64 mmgr_fract_sign | ( | const FractioCfg * | args | ) |
Returns the sign bit of args->bits.
| [in] | args | Bit pattern in the union [BORROWS]. |
References mmgr_fract_sign().
Referenced by mmgr_fract_sign().
| embed_u64 mmgr_fract_exp | ( | const FractioCfg * | args | ) |
Returns the exponent field of args->bits.
| [in] | args | Bit pattern in the union [BORROWS]. |
References mmgr_fract_exp().
Referenced by mmgr_fract_exp().
| embed_u64 mmgr_fract_mant | ( | const FractioCfg * | args | ) |
Returns the mantissa field of args->bits.
| [in] | args | Bit pattern in the union [BORROWS]. |
References mmgr_fract_mant().
Referenced by mmgr_fract_mant().
| embed_u64 mmgr_fract_merge | ( | const FractioCfg * | args | ) |
Packs args->sign, args->exp and args->mant into one bit pattern.
| [in] | args | The three fields [BORROWS]. |
References mmgr_fract_merge().
Referenced by mmgr_fract_merge().
| double mmgr_fract_from_bits | ( | const FractioCfg * | args | ) |
Reads the union as a double.
| [in] | args | Union with its bits member filled [BORROWS]. |
References mmgr_fract_from_bits().
Referenced by mmgr_fract_from_bits().
| embed_u64 mmgr_fract_to_bits | ( | const FractioCfg * | args | ) |
Reads the union as a bit pattern.
| [in] | args | Union with its val member filled [BORROWS]. |
References mmgr_fract_to_bits().
Referenced by mmgr_fract_to_bits().
|
static |
Dispatch table instance named fract, whose members are the mmgr_fract_ entries.