diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2017-09-30 22:48:41 -0400 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2017-10-01 20:29:38 -0400 |
commit | b2a373eb642077fbf5f1bdbe74d1e82cc534f5f2 (patch) | |
tree | 9b86428b3357334b95d18729f1fb870dc3bb302f /apps/plugins/puzzles/help | |
parent | 679ae2d21c17115c998b1ada6412463c3c7a1db9 (diff) | |
download | rockbox-b2a373eb642077fbf5f1bdbe74d1e82cc534f5f2.tar.gz rockbox-b2a373eb642077fbf5f1bdbe74d1e82cc534f5f2.zip |
Replace fp_sqrt function with one that only uses shift, or and sub.
Simply extends the current isqrt() to be able to do fractional bits
and improves the initial estimate using clz(). iqrt() itself is
no more and is equivalent to fp_sqrt(x, 0). The original also had
a small bug where the guess comparision should have been >=, not >.
Uses no large integer math or division and is very accurate
(simply returns a truncated fraction).
Change-Id: I2ae26e6505df1770dc01e56220f7385369f90ae9
Diffstat (limited to 'apps/plugins/puzzles/help')
0 files changed, 0 insertions, 0 deletions