PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

integer sqrt...

ello:)
I'm looking for a fast integer sqrt (16:16 or 24:8 fixedmath function) which will work nicely with PPC. Thanks for your help.
I don't recall seeing anything using fixed point representation, but this web page has an integer based sqrt routine that you might be able to build upon.

http://www.leto.net/docs/asm-sqroot.html
Thnx for this function Digby:)
I hope it will work fine on PPC:) I will try it for speed tommorow, hopefully.
cu
Here are some interesting links:
http://www.finesse.demon.co.uk/steven/sqrt.html
This is an ARM assembly fast integer square root thingy. :) The same page also has C code.
This page contains code that I actually used myself once:
http://www.azillionmonkeys.com/qed/sqroot.html
BTW, I got to this pages using the following search string in google:
Integer Square Root Fast ARM
This search gives you a lot more matches that might also be of interest.