search for: n4296

Displaying 1 result from an estimated 1 matches for "n4296".

Did you mean: 4296
2015 Jun 26
3
[LLVMdev] bitwise ops on booleans
...gt; 10)) effectively becomes: if ((x < 3) && (y > 10)) where x and y are of type 'int'. The second statement (&&) requires short-circuit evaluation to bypass the y comparison when the x comparison is false (creates an extra branch vs. the original code). >From N4296 - 4.5 Integral Promotions: "A prvalue of type bool can be converted to a prvalue of type int, with false becoming zero and true becoming one." 5.11 Bitwise AND operator: "The usual arithmetic conversions are performed; the result is the bitwise AND function of the operands." I...