Eric Blake <e...@byu.net> writes:

>> bool F (bool a, bool b, bool c, bool d) { return a && b && c && d; }
>> bool G (bool a, bool b, bool c, bool d) { return a & b & c & d; }
>
> the compiler should be generating identical code for either choice
> of operator.

Not necessarily, because it could be that the programmer wrote F that
way because its first argument is almost always false, in which case F
is faster even though it's bigger and consumes more instructions in
the worst case.


Reply via email to