diff options
| author | rajdakin <rajdakin@gmail.com> | 2024-01-18 18:57:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-18 18:57:20 +0100 |
| commit | 3a2073f78586e9456452485d89e0531607e5d2f4 (patch) | |
| tree | 9ad61114022ef1c85a5fb50c3a02f863697a6a32 /src/emu/x64compstrings.c | |
| parent | e963d99d5ee85342e320efe1be8fcde39d3f1a32 (diff) | |
| download | box64-3a2073f78586e9456452485d89e0531607e5d2f4.tar.gz box64-3a2073f78586e9456452485d89e0531607e5d2f4.zip | |
Fixes (#1207)
* Fixed signed/unsigned issues and other cosmetics * [WRAPPERS] Fixed missing `return`s in `my_` functions * [EMU] More fixes * [STEAM] Forgot one cleanup * [WRAPPER] Fixed wrappedpulse callback signatures
Diffstat (limited to 'src/emu/x64compstrings.c')
| -rw-r--r-- | src/emu/x64compstrings.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/x64compstrings.c b/src/emu/x64compstrings.c index d61a516c..41216a26 100644 --- a/src/emu/x64compstrings.c +++ b/src/emu/x64compstrings.c @@ -35,15 +35,15 @@ static int overrideIfDataInvalid(sse_regs_t* mem, int lmem, sse_regs_t* reg, int return (i&1)?((reg->uw[i]>=mem->uw[j])):((reg->uw[i]<=mem->uw[j])); case 0b10: // sb return (i&1)?((reg->sb[i]>=mem->sb[j])):((reg->sb[i]<=mem->sb[j])); - case 0b11: // sw + default: // sw return (i&1)?((reg->sw[i]>=mem->sw[j])):((reg->sw[i]<=mem->sw[j])); } break; default: // the others switch (imm8&1) { - case 0: // byte + case 0: // byte return (reg->ub[i] == mem->ub[j]); - case 1: // word + default: // word return (reg->uw[i] == mem->uw[j]); } } @@ -117,4 +117,4 @@ uint32_t sse42_compare_string_implicit_len(x64emu_t* emu, sse_regs_t* mem, sse_r while(lreg<16 && reg->ub[lreg]) ++lreg; } return sse42_compare_string_explicit_len(emu, mem, lmem, reg, lreg, imm8); -} \ No newline at end of file +} |