Decimal to binary conversion, the limits, the arguments, and the muto dispatch table. More...
Go to the source code of this file.
Data Structures | |
| struct | TransformoCfg |
| Arguments for the three muto calls. More... | |
| struct | TransformoNs |
| Type of the muto dispatch table. More... | |
Macros | |
| #define | MMGR_MUTO_MANT_MAX |
| Expands to the largest mantissa mmgr_muto_take will extend, which is (~0 - 9) / 10. | |
| #define | MMGR_MUTO_EXP_LIMIT |
| Expands to 400, the count at which a parsed decimal exponent stops accumulating. | |
Functions | |
| embed_bool | mmgr_muto_take (const TransformoCfg *args) |
| Appends args->digit to *args->mant as one more decimal digit. | |
| double | mmgr_muto_scale (const TransformoCfg *args) |
| Turns *args->mant times ten raised to args->ex into a double, signed by args->neg. | |
| embed_u64 | mmgr_muto_scale_to_u64 (const TransformoCfg *args) |
| Turns *args->mant times two raised to args->e2 times ten raised to args->ex into a rounded 64-bit integer. | |
Variables | |
| static const TransformoNs | muto |
| Dispatch table instance named muto, with each member set to its mmgr_muto_ function. | |
Decimal to binary conversion, the limits, the arguments, and the muto dispatch table.
Definition in file transformo.h.
| #define MMGR_MUTO_MANT_MAX |
Expands to the largest mantissa mmgr_muto_take will extend, which is (~0 - 9) / 10.
Definition at line 34 of file transformo.h.
| #define MMGR_MUTO_EXP_LIMIT |
Expands to 400, the count at which a parsed decimal exponent stops accumulating.
Definition at line 45 of file transformo.h.
| embed_bool mmgr_muto_take | ( | const TransformoCfg * | args | ) |
Appends args->digit to *args->mant as one more decimal digit.
| [in] | args | The mantissa to extend and the digit to append [BORROWS]. |
References mmgr_muto_take().
Referenced by mmgr_muto_take().
| double mmgr_muto_scale | ( | const TransformoCfg * | args | ) |
Turns *args->mant times ten raised to args->ex into a double, signed by args->neg.
| [in] | args | The mantissa, the decimal exponent, the dropped bits and the sign [BORROWS]. |
References mmgr_muto_scale().
Referenced by mmgr_muto_scale().
| embed_u64 mmgr_muto_scale_to_u64 | ( | const TransformoCfg * | args | ) |
Turns *args->mant times two raised to args->e2 times ten raised to args->ex into a rounded 64-bit integer.
| [in] | args | The mantissa, its binary exponent and the decimal exponent [BORROWS]. |
References mmgr_muto_scale_to_u64().
Referenced by mmgr_muto_scale_to_u64().
|
static |
Dispatch table instance named muto, with each member set to its mmgr_muto_ function.
Definition at line 123 of file transformo.h.