benilla-re systems structs docs

RoundUp4f4e40

function · ui · primitive

Address
0x4f4e40 · 31 bytes, up to 0x4f4e5e
Meaning
Rounds a size up to a multiple of a quantum
Confidence
verified, proof one
Finding
ui/containers#arrays

Finding: Arrays in ui: list, table and array helpers

64 rows size and round the arrays whose capacity is a multiple of a quantum:

FunctionRowsDoes
SetArrayCapacity17Sets an array's capacity exactly, keeping the smaller of capacity and count when it must move
RoundUp17Rounds a size up to a multiple of a quantum
GrowArrayBy7Raises an array's capacity for count + add, rounding on request, and leaves the count
Quantum216Returns the grow quantum for a count: the largest power of two not above it below 21, else 21
ResizeArray5Resizes an array of 8-byte entries, copying the kept ones when it must move
Quantum645Returns the grow quantum for a count: the largest power of two not above it below 64, else 64
SetArrayCount2Sets an array's count, growing its capacity to a quantum multiple when it must
ReserveArray2Grows an array to hold more entries, rounding up to its quantum on request
GrowChunk2Returns the growth step for a count
Quantum81Returns the grow quantum for a count: the largest power of two not above it below 8, else 8

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.