benilla-re systems structs docs

CosineInterpolate

function · net · primitive

Address
0x5b7bb0 · 41 bytes, up to 0x5b7bd8
Signature
float __stdcall (float a, float b, float t)
Meaning
Returns a + (b - a)·(1 - cos(π·t))/2 in st0
Confidence
verified, proof one
Finding
net/layout#shared-helpers
Test
cmath::cmath_cosine_smoothstep

Finding: Shared helpers in net: layout

Two functions of the second run serve the whole client. 0x5b71c0 is a lone ret that the static initializers of 124 sites across the client reach when their counter first becomes 1, and 0x5b71d0, also a ret, is its exit twin. 0x5b7bb0 eases between two floats along half a cosine, a + (b − a)·(1 − cos(π·t))/2; it has 11 call sites outside net.

The derivation is in the doc.

Callers 2

Callees 0

None by a direct call or jump.

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