benilla-re systems structs docs

SmoothWaveShifted

function · unassigned · unreached

Address
0x455bb0 · 70 bytes, up to 0x455bf5
Signature
float __stdcall (float x, float y)
Meaning
Returns a smooth zigzag between -1 and 1 of the phase x times y minus one half
Confidence
verified, proof two
Finding
cmath/scalars#shaping-functions

Finding: Shaping functions in cmath: scalars

0x456510(a, b) returns 1.0 when a ≥ b and 0.0 otherwise. 0x456540(x, lo, hi) is the difference of two of them, 1.0 inside [lo, hi). 0x456570(x, lo, hi) is (x − lo)/(hi − lo) clamped into [0, 1], a NaN giving 1.0. 0x4565c0 is the smooth step: 0.0 below lo, 1.0 at or above hi, else t²·(3 − 2t) for that t. 0x456620(a, b) is the C runtime's pow(a, b) (__CIpow, 0x73f940), 0x456640 is pow(a, 1/b), 0x456660(x, b) is pow(x, −log2(b)) through the fast logarithm 0x454c80, and 0x4566a0(x, g) is the gain built from it: 0.5·bias(2x, 1 − g) for x < 0.5 and 1 − 0.5·bias(2 − 2x, 1 − g) otherwise.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 1

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