Skip to content

Commit

Permalink
Merge pull request #2488 from Tilka/cmp
Browse files Browse the repository at this point in the history
x64Emitter: drop duplicate enum & unused wrappers
  • Loading branch information
lioncash committed May 31, 2015
2 parents 43ed19a + eb057d4 commit 4eef805
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
22 changes: 1 addition & 21 deletions Source/Core/Common/x64Emitter.h
Expand Up @@ -102,7 +102,7 @@ enum NormalOp {
nrmXCHG,
};

enum {
enum SSECompare {
CMP_EQ = 0,
CMP_LT = 1,
CMP_LE = 2,
Expand Down Expand Up @@ -279,18 +279,6 @@ struct FixupBranch
int type; //0 = 8bit 1 = 32bit
};

enum SSECompare
{
EQ = 0,
LT,
LE,
UNORD,
NEQ,
NLT,
NLE,
ORD,
};

typedef const u8* JumpTarget;

class XEmitter
Expand Down Expand Up @@ -567,14 +555,6 @@ class XEmitter
void CMPSS(X64Reg regOp, const OpArg& arg, u8 compare);
void CMPSD(X64Reg regOp, const OpArg& arg, u8 compare);

inline void CMPEQSS(X64Reg regOp, const OpArg& arg) { CMPSS(regOp, arg, CMP_EQ); }
inline void CMPLTSS(X64Reg regOp, const OpArg& arg) { CMPSS(regOp, arg, CMP_LT); }
inline void CMPLESS(X64Reg regOp, const OpArg& arg) { CMPSS(regOp, arg, CMP_LE); }
inline void CMPUNORDSS(X64Reg regOp, const OpArg& arg) { CMPSS(regOp, arg, CMP_UNORD); }
inline void CMPNEQSS(X64Reg regOp, const OpArg& arg) { CMPSS(regOp, arg, CMP_NEQ); }
inline void CMPNLTSS(X64Reg regOp, const OpArg& arg) { CMPSS(regOp, arg, CMP_NLT); }
inline void CMPORDSS(X64Reg regOp, const OpArg& arg) { CMPSS(regOp, arg, CMP_ORD); }

// SSE/SSE2: Floating point packed arithmetic (x4 for float, x2 for double)
void ADDPS(X64Reg regOp, const OpArg& arg);
void ADDPD(X64Reg regOp, const OpArg& arg);
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/Core/PowerPC/Jit64/Jit_FloatingPoint.cpp
Expand Up @@ -282,9 +282,9 @@ void Jit64::fselx(UGeckoInstruction inst)
// negative/positive zero and NaN properly.
// (a >= -0.0 ? c : b) transforms into (0 > a ? b : c), hence the NLE.
if (packed)
CMPPD(XMM0, fpr.R(a), NLE);
CMPPD(XMM0, fpr.R(a), CMP_NLE);
else
CMPSD(XMM0, fpr.R(a), NLE);
CMPSD(XMM0, fpr.R(a), CMP_NLE);

if (cpu_info.bSSE4_1)
{
Expand Down

0 comments on commit 4eef805

Please sign in to comment.