summaryrefslogtreecommitdiff
path: root/Source/Core/Common
diff options
context:
space:
mode:
authormagumagu9 <magumagu9@gmail.com>2008-12-31 20:46:55 +0000
committermagumagu9 <magumagu9@gmail.com>2008-12-31 20:46:55 +0000
commit2e58a5bef0aceb5b868ad9c44225d64170cd0ca1 (patch)
tree3102a200fc3bc8b4cfa575e0c09c8c527c07fc44 /Source/Core/Common
parent05df5c8f3f3d5e6a2812fdbad2f64ceb14130409 (diff)
Slightly shorter version of 16-bit BSWAP.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1726 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common')
-rw-r--r--Source/Core/Common/Src/x64Emitter.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/Core/Common/Src/x64Emitter.cpp b/Source/Core/Common/Src/x64Emitter.cpp
index 4d2590d7a0..abd6bb13ec 100644
--- a/Source/Core/Common/Src/x64Emitter.cpp
+++ b/Source/Core/Common/Src/x64Emitter.cpp
@@ -576,9 +576,7 @@ enum NormalSSEOps
}
else if (bits == 16)
{
- //fake 16-bit bswap, TODO replace with xchg ah, al where appropriate
- WriteSimple2Byte(false, 0x0F, 0xC8, reg);
- SHR(32, R(reg), Imm8(16));
+ ROL(16, R(reg), Imm8(8));
}
else if (bits == 8)
{