VirtualBox

Changeset 62230 in vbox for trunk/src/recompiler


Ignore:
Timestamp:
Jul 13, 2016 6:24:32 PM (8 years ago)
Author:
vboxsync
Message:

tcg-target.c: Placate cppcheck - avoid bitwise operations on bools,
"xor" for bools is "not-equals".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/tcg/i386/tcg-target.c

    r42602 r62230  
    725725       by current Intel optimization manuals.  */
    726726    if (!cf && (c == ARITH_ADD || c == ARITH_SUB) && (val == 1 || val == -1)) {
    727         int is_inc = (c == ARITH_ADD) ^ (val < 0);
     727        int is_inc = (c == ARITH_ADD) != (val < 0); /* VBox: cppcheck: "xor" for bools is "not-equals" */
    728728        if (TCG_TARGET_REG_BITS == 64) {
    729729            /* The single-byte increment encodings are re-tasked as the
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette