summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorGravatar Lioncash2015-08-20 04:34:11 -0400
committerGravatar Lioncash2015-08-20 04:45:31 -0400
commita796149c42f2ece4339ea08c106f02bc507cb609 (patch)
tree572f060a5c403b1b06e5e8456c3479cb43c5e171 /src/common
parentemitter: Remove unused code (diff)
downloadyuzu-a796149c42f2ece4339ea08c106f02bc507cb609.tar.gz
yuzu-a796149c42f2ece4339ea08c106f02bc507cb609.tar.xz
yuzu-a796149c42f2ece4339ea08c106f02bc507cb609.zip
emitter: Remove unnecessary else keywords
Diffstat (limited to 'src/common')
-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)
1376 // Currently, only 0x38 and 0x3A are used as secondary escape byte. 1376 // Currently, only 0x38 and 0x3A are used as secondary escape byte.
1377 if ((op >> 8) == 0x3A) 1377 if ((op >> 8) == 0x3A)
1378 return 3; 1378 return 3;
1379 else if ((op >> 8) == 0x38) 1379 if ((op >> 8) == 0x38)
1380 return 2; 1380 return 2;
1381 else 1381
1382 return 1; 1382 return 1;
1383} 1383}
1384 1384
1385static int GetVEXpp(u8 opPrefix) 1385static int GetVEXpp(u8 opPrefix)
1386{ 1386{
1387 if (opPrefix == 0x66) 1387 if (opPrefix == 0x66)
1388 return 1; 1388 return 1;
1389 else if (opPrefix == 0xF3) 1389 if (opPrefix == 0xF3)
1390 return 2; 1390 return 2;
1391 else if (opPrefix == 0xF2) 1391 if (opPrefix == 0xF2)
1392 return 3; 1392 return 3;
1393 else 1393
1394 return 0; 1394 return 0;
1395} 1395}
1396 1396
1397void XEmitter::WriteAVXOp(u8 opPrefix, u16 op, X64Reg regOp1, X64Reg regOp2, const OpArg& arg, int extrabytes) 1397void XEmitter::WriteAVXOp(u8 opPrefix, u16 op, X64Reg regOp1, X64Reg regOp2, const OpArg& arg, int extrabytes)