12.04.2013, 14:05
I hope the title reflect my question as I wasn't sure how to express it.
Anyway, if I'm doing a mathematical operation between 2 constants (or more), does the compiler optimize it?
For example:
I think I've seen this in ******' thread about code optimization a while ago.
Anyway, if I'm doing a mathematical operation between 2 constants (or more), does the compiler optimize it?
For example:
pawn Код:
// Assuming that MAX_PLAYERS is 500, and MAX_VEHICLES is 2000.
new
x = MAX_PLAYERS * MAX_VEHICLES; // Equivalent to x = 1000000 ?