Data Structures | |
| struct | TransformoCfg |
| Arguments for the four 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 its growth. | |
Functions | |
| static EMBED_HOST_DEVICE unsigned int | mmgr_muto_digit_value (uint8_t character) |
| The value of an ASCII digit in a base up to 36. | |
| EMBED_HOST_DEVICE embed_bool | mmgr_muto_take (const TransformoCfg *args) |
| Appends args->digit to *args->mant as one more decimal digit. | |
| EMBED_HOST_DEVICE double | mmgr_muto_scale (const TransformoCfg *args) |
| Turns *args->mant times ten raised to args->ex into a double, signed by args->neg. | |
| EMBED_HOST_DEVICE 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. | |
| EMBED_HOST_DEVICE embed_bool | mmgr_muto_take_in (const TransformoCfg *args) |
| Appends args->digit to *args->mant as one more digit in base args->base. | |
Variables | |
| static const TransformoNs | muto |
| Dispatch table instance named muto, with each member set to its mmgr_muto_ function. | |
| #define MMGR_MUTO_MANT_MAX |
Expands to the largest mantissa mmgr_muto_take will extend, which is (~0 - 9) / 10.
Definition at line 37 of file transformo.h.
| #define MMGR_MUTO_EXP_LIMIT |
Expands to 400, the count at which a parsed decimal exponent stops its growth.
Definition at line 48 of file transformo.h.
|
inlinestatic |
The value of an ASCII digit in a base up to 36.
| [in] | character | The byte. |
Definition at line 91 of file transformo.h.
References mmgr_muto_digit_value().
Referenced by mmgr_muto_digit_value().
| EMBED_HOST_DEVICE 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().
| EMBED_HOST_DEVICE 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_HOST_DEVICE 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().
| EMBED_HOST_DEVICE embed_bool mmgr_muto_take_in | ( | const TransformoCfg * | args | ) |
Appends args->digit to *args->mant as one more digit in base args->base.
| [in] | args | The mantissa to extend, the digit to append and its base [BORROWS]. |
References mmgr_muto_take_in().
Referenced by mmgr_muto_take_in().
|
static |
Dispatch table instance named muto, with each member set to its mmgr_muto_ function.
Definition at line 156 of file transformo.h.