template<typename Packet, int Steps>
struct Eigen::internal::generic_rsqrt_newton_step< Packet, Steps >
Fast reciprocal sqrt using Newton-Raphson's method.
Preconditions:
- The starting guess provided in approx_a_recip must have at least half the leading mantissa bits in the correct result, such that a single Newton-Raphson step is sufficient to get within 1-2 ulps of the correct result.
- If a is zero, approx_a_recip must be infinite with the same sign as a.
- If a is infinite, approx_a_recip must be zero with the same sign as a.
If the preconditions are satisfied, which they are for for the _*_rcp_ps instructions on x86, the result has a maximum relative error of 2 ulps, and correctly handles zero, infinity, and NaN. Positive denormals are treated as zero.