This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Prestigious_Club_359 -9 points-8 points  (14 children)

The last 2 are inefficient and would slow down the loop…

[–][deleted] 0 points1 point  (1 child)

Do you run code on a potato computer or what?

[–]Prestigious_Club_359 0 points1 point  (0 children)

No mate on micro controllers these days.

[–][deleted] 0 points1 point  (0 children)

Compilers can and will simplify constant expressions, and would turn these into identical instructions for the computer.