Lair Of The Multimedia Guru


Fast integer square root

How to calculate the square root of an integer? (unsigned int)sqrt(x) sure but that is slow on many CPUs (~127 cpu cycles on a P3) it also needs a FPU, which may or may not be a problem, how can we do this quicker? lets see

Filed under: Optimization — Michael @ 17:21

Powered by WordPress