3 ms·
Then as one of the comments says why not use the /= operator directly?
Then as one of the comments says why not use the /= operator directly?
On every microprocessor I have seen, increment has a different assembler instruction (e.g. INC) than add (e.g. ADD), so it is reasonable to say they are different.
The bit shift solution uses += -- how is that better?