From 5c787f6fd7e473410cec14ea1cec2280bc8744d7 Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 24 Sep 2007 01:19:38 +0000 Subject: 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 --- cpu.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cpu.h') 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 -- cgit v1.2.1