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

Byte cost lookup: its argument, the call, and the ancorae dispatch table. More...

#include "mmgr.h"

Go to the source code of this file.

Data Structures

struct  AncoraeCfg
 Argument for the cost lookup. More...
struct  ImpensaAncoraeAcusNs
 Type of the ancorae dispatch table. More...

Functions

uint8_t mmgr_ancorae_impensa (const AncoraeCfg *args)
 Returns the cost of args->byte under the table this build links.

Variables

static const ImpensaAncoraeAcusNs ancorae
 Dispatch table instance named ancorae, whose impensa member is mmgr_ancorae_impensa.

Detailed Description

Byte cost lookup: its argument, the call, and the ancorae dispatch table.

Author
dstroy0 (Douglas Quigg) dquig.nosp@m.g123.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
Date
2026-08-29
Note
Five source files define the call, each with its own table. A build links exactly one.

Definition in file impensa_ancorae_acus.h.

Function Documentation

◆ mmgr_ancorae_impensa()

uint8_t mmgr_ancorae_impensa ( const AncoraeCfg * args)

Returns the cost of args->byte under the table this build links.

Parameters
[in]argsByte to look up [BORROWS].
Returns
The cost, 1 through 255.
Note
Lower means the byte is rarer under the linked table. cellul_pick_rows keeps the lowest it finds.
Warning
args is dereferenced without a null check, and so it must point to a readable AncoraeCfg.
The value depends on which of the five tables was linked, and so it is not portable between builds.

References mmgr_ancorae_impensa().

Referenced by mmgr_ancorae_impensa().

Variable Documentation

◆ ancorae

const ImpensaAncoraeAcusNs ancorae
static

Dispatch table instance named ancorae, whose impensa member is mmgr_ancorae_impensa.

Definition at line 56 of file impensa_ancorae_acus.h.