summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2015-08-20 10:34:11 +0200
committerLioncash <mathew1800@gmail.com>2015-08-20 10:45:31 +0200
commita796149c42f2ece4339ea08c106f02bc507cb609 (patch)
tree572f060a5c403b1b06e5e8456c3479cb43c5e171 /src
parentemitter: Remove unused code (diff)
downloadyuzu-a796149c42f2ece4339ea08c106f02bc507cb609.tar
yuzu-a796149c42f2ece4339ea08c106f02bc507cb609.tar.gz
yuzu-a796149c42f2ece4339ea08c106f02bc507cb609.tar.bz2
yuzu-a796149c42f2ece4339ea08c106f02bc507cb609.tar.lz
yuzu-a796149c42f2ece4339ea08c106f02bc507cb609.tar.xz
yuzu-a796149c42f2ece4339ea08c106f02bc507cb609.tar.zst
yuzu-a796149c42f2ece4339ea08c106f02bc507cb609.zip
Diffstat (limited to '')
-rw-r--r--src/common/x64/emitter.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/common/x64/emitter.cpp b/src/common/x64/emitter.cpp
index 1229d0654..61fe197bd 100644
--- a/src/common/x64/emitter.cpp
+++ b/src/common/x64/emitter.cpp
@@ -1376,22 +1376,22 @@ static int GetVEXmmmmm(u16 op)
// Currently, only 0x38 and 0x3A are used as secondary escape byte.
if ((op >> 8) == 0x3A)
return 3;
- else if ((op >> 8) == 0x38)
+ if ((op >> 8) == 0x38)
return 2;
- else
- return 1;
+
+ return 1;
}
static int GetVEXpp(u8 opPrefix)
{
if (opPrefix == 0x66)
return 1;
- else if (opPrefix == 0xF3)
+ if (opPrefix == 0xF3)
return 2;
- else if (opPrefix == 0xF2)
+ if (opPrefix == 0xF2)
return 3;
- else
- return 0;
+
+ return 0;
}
void XEmitter::WriteAVXOp(u8 opPrefix, u16 op, X64Reg regOp1, X64Reg regOp2, const OpArg& arg, int extrabytes)