r/programming • u/mttd • Aug 11 '26
Moving integer division to floating-point is trivial
https://marc-b-reynolds.github.io/math/2026/08/10/IntDivByFP.html
112
Upvotes
r/programming • u/mttd • Aug 11 '26
View all comments
Show parent comment
8
u/FrogNoPants Aug 11 '26
You are forgetting SIMD exists, and integer division isn't even supported in SSE/AVX2/AVX512, so the main benefit of what Marc is mentioning would be a vectorization path for integer division.
Yah it won't be super fast with the conversions, but at least it might vectorize.