Module lemire
Implementation of the Eisel-Lemire algorithm.
Functions
- compute_float Compute w * 10^q using an extended-precision float representation.
- compute_product_approx
- full_multiplication
- power Calculate a base 2 exponent from a decimal exponent. This uses a pre-computed integer approximation for log2(10), where 217706 / 2^16 is accurate for the entire range of non-finite decimal exponents.