Wojciech Muła personal blog

Dividing unsigned 8-bit numbers

Division is quite an expensive operation. For instance, latency of the 32-bit division varies between 10 and 15 cycles on the Cannon Lake CPU, and for Zen4 this range is from 9 to 14 cycles. The latency of 32-bit multiplication is 3 or 4 cycles on both CPU models.
Points
162
HN comments
67
Submissions
1
Cited by
0 commenters

Math & AlgorithmsSoftware Engineering2024

On Hacker News

SubmittedTitle on HNPointsComments
Dec 21, 2024Dividing unsigned 8-bit numbers by mfiguiere16267

More from Wojciech Muła

All 5 posts →

Related posts from the same era