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

Type of the fract dispatch table. More...

#include <fractio.h>

Data Fields

embed_u64(*) sign (const FractioCfg *args)
embed_u64(*) exp (const FractioCfg *args)
embed_u64(*) mant (const FractioCfg *args)
embed_u64(*) merge (const FractioCfg *args)
double(*) from_bits (const FractioCfg *args)
embed_u64(*) to_bits (const FractioCfg *args)

Detailed Description

Type of the fract dispatch table.

Note
EMBED_TABLE_LAYOUT asserts the six members sit at consecutive EMBED_FUNCTION_POINTER_BYTES offsets, with nothing else.

Definition at line 139 of file fractio.h.

Field Documentation

◆ sign

embed_u64(*) FractioNs::sign(const FractioCfg *args)

Sign bit of bits, as 0 or 1.

Definition at line 141 of file fractio.h.

◆ exp

embed_u64(*) FractioNs::exp(const FractioCfg *args)

Biased exponent field of bits.

Definition at line 142 of file fractio.h.

◆ mant

embed_u64(*) FractioNs::mant(const FractioCfg *args)

Stored mantissa field of bits.

Definition at line 143 of file fractio.h.

◆ merge

embed_u64(*) FractioNs::merge(const FractioCfg *args)

Packs sign, exp and mant into one pattern.

Definition at line 144 of file fractio.h.

◆ from_bits

double(*) FractioNs::from_bits(const FractioCfg *args)

Reads the union as a double.

Definition at line 145 of file fractio.h.

◆ to_bits

embed_u64(*) FractioNs::to_bits(const FractioCfg *args)

Reads the union as a bit pattern.

Definition at line 146 of file fractio.h.


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