aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-08-15 13:42:20 +0000
committerlloyd <[email protected]>2006-08-15 13:42:20 +0000
commit04dba5d24af0ec367308e337b7ab8d0f464413a7 (patch)
treea3bb09ebeab9110dccb526be070b7480ddfc7910 /modules
parent6210b10f3bfc8c0cc5b7840f7bf3e47a2eade766 (diff)
Add a specialized shift instruction for 3 that uses LEA to do a shift and
move in one instruction.
Diffstat (limited to 'modules')
-rw-r--r--modules/alg_ia32/asm_macr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/alg_ia32/asm_macr.h b/modules/alg_ia32/asm_macr.h
index 8e930ef96..dec14b738 100644
--- a/modules/alg_ia32/asm_macr.h
+++ b/modules/alg_ia32/asm_macr.h
@@ -91,6 +91,7 @@ func_name:
#define SHL_IMM(REG, SHIFT) shll IMM(SHIFT), REG
#define SHR_IMM(REG, SHIFT) shrl IMM(SHIFT), REG
+#define SHL2_3(TO, FROM) leal 0(,FROM,8), TO
#define XOR(TO, FROM) xorl FROM, TO
#define AND(TO, FROM) andl FROM, TO