mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:37:34 +00:00
UserspaceEmulator: Use boolean operators instead of bitwise ones
Fixes a bitwise-instead-of-logical warning from Clang 14.
This commit is contained in:
parent
bb92991408
commit
e4b7ce3324
1 changed files with 6 additions and 6 deletions
|
@ -418,9 +418,9 @@ public:
|
|||
case 5:
|
||||
return !zf(); // NE, NZ
|
||||
case 6:
|
||||
return (cf() | zf()); // BE, NA
|
||||
return cf() || zf(); // BE, NA
|
||||
case 7:
|
||||
return !(cf() | zf()); // NBE, A
|
||||
return !(cf() || zf()); // NBE, A
|
||||
case 8:
|
||||
return sf(); // S
|
||||
case 9:
|
||||
|
@ -430,13 +430,13 @@ public:
|
|||
case 11:
|
||||
return !pf(); // NP, PO
|
||||
case 12:
|
||||
return sf() ^ of(); // L, NGE
|
||||
return sf() != of(); // L, NGE
|
||||
case 13:
|
||||
return !(sf() ^ of()); // NL, GE
|
||||
return sf() == of(); // NL, GE
|
||||
case 14:
|
||||
return (sf() ^ of()) | zf(); // LE, NG
|
||||
return (sf() != of()) || zf(); // LE, NG
|
||||
case 15:
|
||||
return !((sf() ^ of()) | zf()); // NLE, G
|
||||
return !((sf() != of()) || zf()); // NLE, G
|
||||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue