aboutsummaryrefslogtreecommitdiff
path: root/cryptopp/stdcpp.h
diff options
context:
space:
mode:
author--author=Satoshi Nakamoto <satoshin@gmx.com>2010-07-27 20:43:55 +0000
committerGavin Andresen <gavinandresen@gmail.com>2010-07-27 20:43:55 +0000
commit3dd20ff2f87958a440c9dceae8abe3967aa48fcf (patch)
tree5cf88b4e9ba89460a83488561d9fd23feaa87365 /cryptopp/stdcpp.h
parent9f35575ca34eb15b20d1d5374b56ac9d4c8cc2bf (diff)
downloadbitcoin-3dd20ff2f87958a440c9dceae8abe3967aa48fcf.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
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..9a468ab61e
--- /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