Silence VPS-Studio errors (V646). These is no functional change.
This commit is contained in:
parent
08e9106881
commit
7de2983dd0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=295775
@ -7003,7 +7003,7 @@ rol_byte(struct x86emu *emu, uint8_t d, uint8_t s)
|
||||
CONDITIONAL_SET_FLAG(s == 1 &&
|
||||
XOR2((res & 0x1) + ((res >> 6) & 0x2)),
|
||||
F_OF);
|
||||
} if (s != 0) {
|
||||
} else if (s != 0) {
|
||||
/* set the new carry flag, Note that it is the low order bit
|
||||
* of the result!!! */
|
||||
CONDITIONAL_SET_FLAG(res & 0x1, F_CF);
|
||||
@ -7029,7 +7029,7 @@ rol_word(struct x86emu *emu, uint16_t d, uint8_t s)
|
||||
CONDITIONAL_SET_FLAG(s == 1 &&
|
||||
XOR2((res & 0x1) + ((res >> 14) & 0x2)),
|
||||
F_OF);
|
||||
} if (s != 0) {
|
||||
} else if (s != 0) {
|
||||
/* set the new carry flag, Note that it is the low order bit
|
||||
* of the result!!! */
|
||||
CONDITIONAL_SET_FLAG(res & 0x1, F_CF);
|
||||
@ -7055,7 +7055,7 @@ rol_long(struct x86emu *emu, uint32_t d, uint8_t s)
|
||||
CONDITIONAL_SET_FLAG(s == 1 &&
|
||||
XOR2((res & 0x1) + ((res >> 30) & 0x2)),
|
||||
F_OF);
|
||||
} if (s != 0) {
|
||||
} else if (s != 0) {
|
||||
/* set the new carry flag, Note that it is the low order bit
|
||||
* of the result!!! */
|
||||
CONDITIONAL_SET_FLAG(res & 0x1, F_CF);
|
||||
|
Loading…
Reference in New Issue
Block a user