summaryrefslogtreecommitdiff
path: root/pch.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-09-24 00:45:59 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-09-24 00:45:59 +0000
commit1becc2a5b6b7f04ba31c8ac66704292b9f11b949 (patch)
tree7b067f23e0063f34db0fb8a756f606d166663c94 /pch.h
parent5b70f0e84d78f5e57805ce2ea3b9e123bab6cc9b (diff)
downloadcryptopp-1becc2a5b6b7f04ba31c8ac66704292b9f11b949.tar.gz
- port x64 assembly code to MASM
- improve stack unwindability on x64 for GCC by not modifying RBP/RSP registers in inline assembly git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@398 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'pch.h')
-rw-r--r--pch.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/pch.h b/pch.h
index 7391e5e..418c390 100644
--- a/pch.h
+++ b/pch.h
@@ -1,13 +1,21 @@
#ifndef CRYPTOPP_PCH_H
#define CRYPTOPP_PCH_H
-#include "config.h"
+#ifdef CRYPTOPP_GENERATE_X64_MASM
+
+ #include "cpu.h"
+
+#else
+
+ #include "config.h"
+
+ #ifdef USE_PRECOMPILED_HEADERS
+ #include "simple.h"
+ #include "secblock.h"
+ #include "misc.h"
+ #include "smartptr.h"
+ #endif
-#ifdef USE_PRECOMPILED_HEADERS
-#include "simple.h"
-#include "secblock.h"
-#include "misc.h"
-#include "smartptr.h"
#endif
#endif