benilla-re systems structs docs

HeapNodeIsNotLater

function · core · primitive

Address
0x422970 · 25 bytes, up to 0x422988
Signature
uint32_t __thiscall (void *this, void *other)
Meaning
Returns 1 when (int32)(node due - other due) is at most 0, the heap order
Confidence
verified, proof two
Finding
core/loop#scheduler-heap
Test
core::heap_key_le_matches_binary

Finding: Scheduler heap in core: the frame loop

Each slot keeps its contexts in a binary min-heap ordered by due time, compared as (int32)(a − b) ≤ 0, so due times may wrap. Taking the root moves the last element down, choosing the right child when it is not later than the left. Timers use the same heap code and comparator.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 0

None by a direct call or jump.

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