Add new prevector benchmarks.

This prepares for a series of two additional commits which optimize
prevector performance.
This commit is contained in:
Evan Klitzke
2018-02-26 18:45:57 -08:00
parent 228b086b9a
commit f0e7aa7020
4 changed files with 88 additions and 37 deletions

View File

@@ -10,6 +10,16 @@
#include <config/bitcoin-config.h>
#endif
#include <type_traits>
// GCC 4.8 is missing some C++11 type_traits,
// https://www.gnu.org/software/gcc/gcc-5/changes.html
#if defined(__GNUC__) && __GNUC__ < 5
#define IS_TRIVIALLY_CONSTRUCTIBLE std::is_trivial
#else
#define IS_TRIVIALLY_CONSTRUCTIBLE std::is_trivially_constructible
#endif
#ifdef WIN32
#ifdef _WIN32_WINNT
#undef _WIN32_WINNT