Efficient Square Root Implementation?
-
- Member++
- Posts: 18
- Joined: Sat Feb 02, 2013 4:59 am
Efficient Square Root Implementation?
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!
-
- Respected Member
- Posts: 318
- Joined: Tue Dec 15, 2009 12:46 am
There is an integer square root implementation in the following repo which you might find useful:
https://github.com/xcore/sc_lib_fixed_point
https://github.com/xcore/sc_lib_fixed_point
-
- XCore Addict
- Posts: 161
- Joined: Sun Jun 12, 2011 11:47 am
You might want to check out hackers delight.
-
- Member++
- Posts: 18
- Joined: Sat Feb 02, 2013 4:59 am
Great, thanks guys. I should have known Henk Muller would have already written something like this. Thanks!