2 ms·
Generally multiplying with 1 can be used to just do (the equivalent in assembly of): a = a * b; instead of if (b != 1) a = a * b; Which is
by noselasd 10y ago
Generally multiplying with 1 can be used to just do (the equivalent in assembly of):
a = a * b;
instead of
if (b != 1)
a = a * b;
Which is normally a win, as branching are expensive vs multiplication.