summaryrefslogtreecommitdiff
path: root/cpu.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-09-24 01:19:38 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-09-24 01:19:38 +0000
commit5c787f6fd7e473410cec14ea1cec2280bc8744d7 (patch)
tree0fa650434e4b89694857d302336d9cff943218be /cpu.h
parent64e430d5267a8c1fbef5163db613775a28545724 (diff)
downloadcryptopp-5c787f6fd7e473410cec14ea1cec2280bc8744d7.tar.gz
fix compile with GAS 2.15
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@400 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'cpu.h')
-rwxr-xr-xcpu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpu.h b/cpu.h
index 2ef55c3..7ec73d9 100755
--- a/cpu.h
+++ b/cpu.h
@@ -148,9 +148,12 @@ inline bool HasMMX() {return false;}
#ifdef CRYPTOPP_GENERATE_X64_MASM
#define ASM_MOD(x, y) ((x) MOD (y))
+#define XMMWORD_PTR XMMWORD PTR
#else
// GNU assembler doesn't seem to have mod operator
#define ASM_MOD(x, y) ((x)-((x)/(y))*(y))
+// GAS 2.15 doesn't support XMMWORD PTR. it seems necessary only for MASM
+#define XMMWORD_PTR
#endif
#if CRYPTOPP_BOOL_X86