MMgr v1.0.0
Zero-heap memory manager in C11. One borrowed buffer, carved by asserted offset.
Loading...
Searching...
No Matches
TransformoCfg Struct Reference

Arguments for the three muto calls. More...

#include <transformo.h>

Data Fields

embed_u64 *const mant
const char digit
const embed_iword e2
const embed_iword ex
const embed_iword rest
const embed_bool neg

Detailed Description

Arguments for the three muto calls.

Note
take reads mant and digit.
scale reads mant, ex, rest and neg.
scale_to_u64 reads mant, e2 and ex.
Warning
mant is written through by take, and so the caller's mantissa changes [BORROWS].

Definition at line 55 of file transformo.h.

Field Documentation

◆ mant

embed_u64* const TransformoCfg::mant

The mantissa, extended by take and read by both scaling calls [BORROWS].

Definition at line 57 of file transformo.h.

◆ digit

const char TransformoCfg::digit

ASCII decimal digit take appends.

Definition at line 58 of file transformo.h.

◆ e2

const embed_iword TransformoCfg::e2

Binary exponent the mantissa already carries, read by scale_to_u64.

Definition at line 59 of file transformo.h.

◆ ex

const embed_iword TransformoCfg::ex

Decimal exponent to apply.

Definition at line 60 of file transformo.h.

◆ rest

const embed_iword TransformoCfg::rest

Non-zero when the caller already dropped bits, and so rounding can see them.

Definition at line 61 of file transformo.h.

◆ neg

const embed_bool TransformoCfg::neg

Sign scale gives its result.

Definition at line 62 of file transformo.h.


The documentation for this struct was generated from the following file: