Generalising the Fast Reciprocal Square Root Algorithm
Mike Day

TL;DR
This paper generalizes the fast reciprocal square root algorithm to efficiently approximate all rational powers and polynomial degrees, providing optimal constants and improved accuracy-cost tradeoffs.
Contribution
It introduces a generalized algorithm for rational powers, optimal constants construction, and analysis of polynomial choices for refinement steps.
Findings
Generalized algorithm for all rational powers
Automatic construction of provably optimal constants
Monic polynomials offer better cost/accuracy tradeoffs
Abstract
The Fast Reciprocal Square Root Algorithm is a well-established approximation technique consisting of two stages: first, a coarse approximation is obtained by manipulating the bit pattern of the floating point argument using integer instructions, and second, the coarse result is refined through one or more steps, traditionally using Newtonian iteration but alternatively using improved expressions with carefully chosen numerical constants found by other authors. The algorithm was widely used before microprocessors carried built-in hardware support for computing reciprocal square roots. At the time of writing, however, there is in general no hardware acceleration for computing other fixed fractional powers. This paper generalises the algorithm to cater to all rational powers, and to support any polynomial degree(s) in the refinement step(s), and under the assumption of unlimited floating…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNumerical Methods and Algorithms · Digital Filter Design and Implementation · Iterative Methods for Nonlinear Equations
