Exact Short Products From Truncated Multipliers

Daniel Lemire
DOI: https://doi.org/10.1093/comjnl/bxad077
2023-03-25
Abstract:We sometimes need to compute the most significant digits of the product of small integers with a multiplier requiring much storage: e.g., a large integer (e.g., $5^{100}$) or an irrational number ($\pi$). We only need to access the most significant digits of the multiplier-as long as the integers are sufficiently small. We provide an efficient algorithm to compute the range of integers given a truncated multiplier and a desired number of digits.
Data Structures and Algorithms
What problem does this paper attempt to address?