Module core::num::dec2flt::lemire

source ·
🔬This is a nightly-only experimental API. (dec2flt)
Expand description

Implementation of the Eisel-Lemire algorithm.

Functions

  • compute_floatExperimental
    Compute w * 10^q using an extended-precision float representation.
  • compute_product_approx 🔒 Experimental
  • full_multiplication 🔒 Experimental
  • power 🔒 Experimental
    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.