summaryrefslogtreecommitdiff
path: root/apps/plugins/lib
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lib')
-rw-r--r--apps/plugins/lib/fixedpoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/lib/fixedpoint.c b/apps/plugins/lib/fixedpoint.c
index 9c34c2a..56597c1 100644
--- a/apps/plugins/lib/fixedpoint.c
+++ b/apps/plugins/lib/fixedpoint.c
@@ -131,7 +131,7 @@ long fsqrt(long a, unsigned int fracbits)
const unsigned iterations = 4;
for (n = 0; n < iterations; ++n)
- b = (b + DIV64(a, b, fracbits))/2;
+ b = (b + (long)(((long long)(a) << fracbits)/b))/2;
return b;
}