diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2007-12-05 13:49:12 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2007-12-05 13:49:12 +0000 |
commit | 1b0c2eed48748ebeddf3e39cf3b626e939070a9f (patch) | |
tree | 0021343ad88a70b1da788d98994608cb15b6e538 /misc.h | |
parent | d34d068d47616f810a3da2c90dec153f6a147f4e (diff) | |
download | cryptopp-1b0c2eed48748ebeddf3e39cf3b626e939070a9f.tar.gz |
add workaround for _interlockedbittestandset64 and _interlockedbittestandreset64
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@416 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'misc.h')
-rw-r--r-- | misc.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -11,9 +11,13 @@ // VC2005 workaround: disable declarations that conflict with winnt.h #define _interlockedbittestandset CRYPTOPP_DISABLED_INTRINSIC_1 #define _interlockedbittestandreset CRYPTOPP_DISABLED_INTRINSIC_2 + #define _interlockedbittestandset64 CRYPTOPP_DISABLED_INTRINSIC_3 + #define _interlockedbittestandreset64 CRYPTOPP_DISABLED_INTRINSIC_4 #include <intrin.h> #undef _interlockedbittestandset #undef _interlockedbittestandreset + #undef _interlockedbittestandset64 + #undef _interlockedbittestandreset64 #define CRYPTOPP_FAST_ROTATE(x) 1 #elif _MSC_VER >= 1300 #define CRYPTOPP_FAST_ROTATE(x) ((x) == 32 | (x) == 64) |