Hacker News new | ask | show | jobs
by BitMastro 4516 days ago
I think applying a newton-raphson approach instead of just choosing a fixed pivot could result in fewer comparisons.

On the other hand, a comparison is a dirty cheap operation, even using bit masks and shifts I doubt it will have a big performance impact, unless we're dealing with very very big arrays.