From 2e58a5bef0aceb5b868ad9c44225d64170cd0ca1 Mon Sep 17 00:00:00 2001 From: magumagu9 Date: Wed, 31 Dec 2008 20:46:55 +0000 Subject: [PATCH] Slightly shorter version of 16-bit BSWAP. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1726 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/x64Emitter.cpp | 4 +--- 1 file changed, 1 insertion(+), 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) {