The second should be faster, but why not just compile your code and see for yourself? Some things to note also are that the optimizer may just generate the most optimal way of doing that either way. Also, one last thing: standard logic applies. Multiplication can be expensive, but even if it weren't, which is faster, doing something once or twice?