MCPcopy Create free account
hub / github.com/Edzelf/ESP32-Radio / InvRNormalized

Function InvRNormalized

lib/codecs/src/aac_decoder.cpp:5742–5760  ·  view source on GitHub ↗

* Function: InvRNormalized * * Description: use Newton's method to solve for x = 1/r * * Inputs: r = Q31, range = [0.5, 1) (normalize your inputs to this range) * * Outputs: none * * Return: x = Q29, range ~= [1.0, 2.0] * * Notes: guaranteed to converge and not overflow for any r in [0.5, 1) * * xn+1 = xn - f(xn)/f'(xn) * f(x) = 1/r -

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

CalcMaxGainFunction · 0.85
CalcNoiseDivFactorsFunction · 0.85
CalcComponentGainsFunction · 0.85
ApplyBoostFunction · 0.85
CalcLPCoefsFunction · 0.85

Calls 1

MULSHIFT32Function · 0.70

Tested by

no test coverage detected