3 ms·
... if the expression can't be reduced to multiplications/shifts/addition due to division by a constant. Ah, I missed that. Even on normal processors, for the
by tspiteri 16y ago
... if the expression can't be reduced to multiplications/shifts/addition due to division by a constant.
Ah, I missed that. Even on normal processors, for the following:
int div60(int i) { return i / 60; }
int mod60(int i) { return i % 60; }
gcc uses one multiplication and some shifts/additions for div60() and two multiplications and some shifts/additions for mod60().