Efficient Square Root Implementation?

Technical questions regarding the XTC tools and programming with XMOS.
User avatar
stephencwelch
Member++
Posts: 18
Joined: Sat Feb 02, 2013 4:59 am

Efficient Square Root Implementation?

Post by stephencwelch »

Anyone aware of an efficient square root implementation on XMOS? There seems to be about a million ways to implement integer square roots, I'm wondering if there's any special tricks or built in functions in the XS-1 architecture that could be exploited here. Thanks!


richard
Respected Member
Posts: 318
Joined: Tue Dec 15, 2009 12:46 am

Post by richard »

There is an integer square root implementation in the following repo which you might find useful:

https://github.com/xcore/sc_lib_fixed_point
User avatar
pstnotpd
XCore Addict
Posts: 161
Joined: Sun Jun 12, 2011 11:47 am

Post by pstnotpd »

You might want to check out hackers delight.
User avatar
stephencwelch
Member++
Posts: 18
Joined: Sat Feb 02, 2013 4:59 am

Post by stephencwelch »

Great, thanks guys. I should have known Henk Muller would have already written something like this. Thanks!