MMgr v2.3.0
Zero-heap memory manager in C11. One borrowed buffer, carved by asserted offset.
Loading...
Searching...
No Matches
impensa_ancorae_acus — anchor cost tables

Data Structures

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

Functions

 EMBED_PASS_DECLARE (const uint8_t, mmgr_ancorae_impensa_table, [256])
 Cost of each byte value under the profile this build links, indexed by the byte itself.
EMBED_HOST_DEVICE 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

Function Documentation

◆ EMBED_PASS_DECLARE()

EMBED_PASS_DECLARE ( const uint8_t ,
mmgr_ancorae_impensa_table  )

Cost of each byte value under the profile this build links, indexed by the byte itself.

Note
The profile file that the build selects defines it, and mmgr_ancorae_impensa reads it.
Under nvcc the table has a device twin, mmgr_ancorae_impensa_table_device, from the same initializer. A read names the table through EMBED_PASS_NAME, and so a kernel reads the twin in device memory.

References EMBED_PASS_DECLARE().

Referenced by EMBED_PASS_DECLARE(), and EMBED_PASS_DECLARE().

◆ mmgr_ancorae_impensa()

EMBED_HOST_DEVICE 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 retains the lowest it finds.
Warning
The read through args has no null check, and so it must point to a readable AncoraeCfg.
The value depends on which of the five tables the build 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 69 of file impensa_ancorae_acus.h.