aboutsummaryrefslogtreecommitdiff
path: root/cryptopp/stdcpp.h
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-07-27 18:14:32 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-07-27 18:14:32 +0000
commit813505cc1313b7e191b787f93e573acb91fa1464 (patch)
tree4a6de5a8fb3a54a2e68153ee773d6fd93c93769b /cryptopp/stdcpp.h
parent520f3673196dd6517982e3f662cf62afda368341 (diff)
downloadbitcoin-813505cc1313b7e191b787f93e573acb91fa1464.tar.xz
added a subset of Crypto++ 5.6.0 with 48% faster ASM SHA-256, combined speedup 2.5x faster vs 0.3.3, thanks BlackEye for figuring out the alignment problem
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@114 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'cryptopp/stdcpp.h')
-rw-r--r--cryptopp/stdcpp.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/cryptopp/stdcpp.h b/cryptopp/stdcpp.h
new file mode 100644
index 0000000000..e535310efa
--- /dev/null
+++ b/cryptopp/stdcpp.h
@@ -0,0 +1,27 @@
+#ifndef CRYPTOPP_STDCPP_H
+#define CRYPTOPP_STDCPP_H
+
+#include <stddef.h>
+#include <assert.h>
+#include <limits.h>
+#include <memory>
+#include <string>
+#include <exception>
+#include <typeinfo>
+
+
+#ifdef _MSC_VER
+#include <string.h> // CodeWarrior doesn't have memory.h
+#include <algorithm>
+#include <map>
+#include <vector>
+
+// re-disable this
+#pragma warning(disable: 4231)
+#endif
+
+#if defined(_MSC_VER) && defined(_CRTAPI1)
+#define CRYPTOPP_MSVCRT6
+#endif
+
+#endif