Conversation

Replying to
On the contrary, this aims at obtaining from GCC the constants that allow to implement these divisions as multiplications… in a context where the numbers to divide could have been represented as BCD, and then division would be trivial, but they weren't.
1
5
Show replies
That can be implemented fairly efficiently via 64-bit integer operations though. GCC / Clang provide a decent 64-bit int on 32-bit and 128-bit on 64-bit in software. It could be open coded too. It's going to make an even bigger difference if there's no hardware mod / div at all.
1
1
Show replies