summaryrefslogtreecommitdiff
path: root/cpu.h
diff options
context:
space:
mode:
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