I wrote that algorithm! A year later I found Hacker's delight, a wonderful book that had a much "faster" version of the same algorithm (less ops).
For anyone interested in this kind of things, you should go read that book. It actually is a delight.
For anyone interested in this kind of things, you should go read that book. It actually is a delight.