Yes
10th December 2011, 23:47
Hi! First I wonder, is qmake a compiler or does it just create makefiles that it uses when compiling the code with another compiler, say gcc or mingw? My second question is, does qmake optimize multiplication/division by one? That is, if I write
a = one * b;
or
a = b * one;
or
a = b / one;
, is this optimized to just
a = b;
? Here, "one" is either a define or a const that is set to one. Also, does it depend on whether a and b are float types, and on whether one is a float type?
a = one * b;
or
a = b * one;
or
a = b / one;
, is this optimized to just
a = b;
? Here, "one" is either a define or a const that is set to one. Also, does it depend on whether a and b are float types, and on whether one is a float type?