MCPcopy Create free account
hub / github.com/doldecomp/mkdd / stspeedy_sqrtf

Function stspeedy_sqrtf

src/Sato/stMath.cpp:55–65  ·  view source on GitHub ↗

might use JMAFastSqrt instead, who knows

Source from the content-addressed store, hash-verified

53
54// might use JMAFastSqrt instead, who knows
55float stspeedy_sqrtf(register float x)
56{
57 register float recip;
58
59 if (x > 0.0f)
60 {
61 __asm { frsqrte recip, x }
62 return recip * x;
63 }
64 return x;
65}
66
67float stLength2(float x, float z)
68{

Callers 4

stLength2Function · 0.85
stVec2QtUpdateFunction · 0.85
stVec2QtFunction · 0.85
stMtx2QtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected