Commit f1bbd911 authored by Richard Gobeille's avatar Richard Gobeille

engine: add klabs() back into ksqrtasm_old()

parent d279acc6
......@@ -208,6 +208,7 @@ extern uint16_t ATTRIBUTE((used)) sqrtable[4096], ATTRIBUTE((used)) shlookup[409
static inline int32_t ksqrtasm_old(uint32_t n)
{
uint32_t shift = 0;
n = klabs((int32_t)n);
while (n >= 2048)
{
n >>= 2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment