Faster remainder by direct computation: Applications to compilers and software libraries
@article{Lemire2019FasterRB, title={Faster remainder by direct computation: Applications to compilers and software libraries}, author={D. Lemire and Owen Kaser and N. Kurz}, journal={Software: Practice and Experience}, year={2019}, volume={49}, pages={953 - 970} }
On common processors, integer multiplication is many times faster than integer division. Dividing a numerator n by a divisor d is mathematically equivalent to multiplication by the inverse of the divisor (n/d=n∗1/d). If the divisor is known in advance, or if repeated integer divisions will be performed with the same divisor, it can be beneficial to substitute a less costly multiplication for an expensive division. Currently, the remainder of the division by a constant is computed from the… CONTINUE READING
Topics from this paper
Paper Mentions
6 Citations
A 32-bit Integer Division Algorithm Based on Priority Encoder
- Computer Science
- 2020 27th IEEE International Conference on Electronics, Circuits and Systems (ICECS)
- 2020
A Constant Time Full Hardware Implementation of Streamlined NTRU Prime
- Computer Science
- IACR Cryptol. ePrint Arch.
- 2020
- PDF
c-Trie++: A Dynamic Trie Tailored for Fast Prefix Searches
- Mathematics, Computer Science
- 2020 Data Compression Conference (DCC)
- 2020
- 3
- PDF
References
SHOWING 1-10 OF 19 REFERENCES
Efficient Algorithms for Integer Division by Constants Using Multiplication
- Computer Science, Mathematics
- Comput. J.
- 2008
- 7
- PDF
Improved Division by Invariant Integers
- Mathematics, Computer Science
- IEEE Transactions on Computers
- 2011
- 44
- PDF
Hardware Division by Small Integer Constants
- Mathematics, Computer Science
- IEEE Transactions on Computers
- 2017
- 11
- PDF
Efficient and formally proven reduction of large integers by small moduli
- Computer Science, Mathematics
- TOMS
- 2010
- 3
- PDF
A Combinatoric Division Algorithm for Fixed-Integer Divisors
- Mathematics, Computer Science
- IEEE Trans. Computers
- 1973
- 14