Original Post
as i understand it, there is no integer square root function hardwired into x86 processors, nor am i able to find one in std.math. integer rootfinding algos are not hard to come by, ive found numerous on the internet. however, im a little concerned with performance. +-65 cycles to take the 16 bit root of a 32 bit number. (set the highest possible value btw. for low values its something like 50). if i want the root in 16.16 fixed format, which i think i will, thats ofcource going to cost me twice as much time. is this bad? i have the feeling it can be better. i dont want to resort to any float ops though. its quite time critical, because it will be used for normalization in a raytracer on a per-ray basis.