MCPcopy Create free account
hub / github.com/VincentWei/MiniGUI / fixsqrt

Function fixsqrt

src/misc/math.c:476–506  ·  view source on GitHub ↗

fixsqrt: * Fixed point square root routine. * * This routine is based upon the following idea: * sqrt (x) = sqrt (x/d) * sqrt(d) * d = 2^(2n) * sqrt (x) = sqrt (x / 2^(2n)) * 2^n * `x/2^(2n)' has to fall into the range 0..255 so that we can use the * square root lookup table. So `2n' is the number of bits `x' has to be * shifted to the left to become smaller than 256. The best w

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

_gdi_get_rotated_pointFunction · 0.85
SplineToFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected