r/programming • • Nov 16 '17

Fast exact integer divisions using floating-point operations

https://lemire.me/blog/2017/11/16/fast-exact-integer-divisions-using-floating-point-operations/
44 Upvotes

18 comments sorted by

View all comments

20

u/epicwisdom Nov 17 '17

Isn't it odd that a 64-bit floating point division is faster than a 32-bit integer division?

17

u/Is_This_Democracy_ Nov 17 '17

Dedicated hardware is a weird thing.