2019
DOI: 10.1002/spe.2689
|View full text |Cite
|
Sign up to set email alerts
|

Faster remainder by direct computation: Applications to compilers and software libraries

Abstract: Summary 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 quotient by a… Show more

Help me understand this report
View preprint versions

Search citation statements

Order By: Relevance

Paper Sections

Select...
3
1
1

Citation Types

0
35
0

Year Published

2021
2021
2024
2024

Publication Types

Select...
4
1

Relationship

2
3

Authors

Journals

citations
Cited by 21 publications
(35 citation statements)
references
References 12 publications
0
35
0
Order By: Relevance
“…• When q ≥ 0, we have m = w × 5 q × 2 q × 2 −p so that m is divisible by 5 q . In the 64-bit case, we have that m < 2 53 ; and in the 32-bit case, we have that m < 2 24 . Thus we have, respectively, 5 q < 2 53 and 5 q < 2 24 .…”
Section: Exact Numbers and Tiesmentioning
confidence: 90%
See 4 more Smart Citations
“…• When q ≥ 0, we have m = w × 5 q × 2 q × 2 −p so that m is divisible by 5 q . In the 64-bit case, we have that m < 2 53 ; and in the 32-bit case, we have that m < 2 24 . Thus we have, respectively, 5 q < 2 53 and 5 q < 2 24 .…”
Section: Exact Numbers and Tiesmentioning
confidence: 90%
“…In the 64-bit case, we have that m < 2 53 ; and in the 32-bit case, we have that m < 2 24 . Thus we have, respectively, 5 q < 2 53 and 5 q < 2 24 . These inequalities become q ≤ 22 and q ≤ 10.…”
Section: Exact Numbers and Tiesmentioning
confidence: 90%
See 3 more Smart Citations