Question: Mathematical Operations Between Constants
#1

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:

pawn Код:
// Assuming that MAX_PLAYERS is 500, and MAX_VEHICLES is 2000.
new
    x = MAX_PLAYERS * MAX_VEHICLES; // Equivalent to x = 1000000 ?
I think I've seen this in ******' thread about code optimization a while ago.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)