|
|
@ -12,8 +12,8 @@ BOOST_AUTO_TEST_SUITE(bignum_tests) |
|
|
|
// You should use it like this:
|
|
|
|
// You should use it like this:
|
|
|
|
// NOINLINE void function() {...}
|
|
|
|
// NOINLINE void function() {...}
|
|
|
|
#if defined(__GNUC__) |
|
|
|
#if defined(__GNUC__) |
|
|
|
// This also works and will be defined for any compiler implementing gcc
|
|
|
|
// This also works and will be defined for any compiler implementing GCC
|
|
|
|
// extensions, such as clang and icc.
|
|
|
|
// extensions, such as Clang and ICC.
|
|
|
|
#define NOINLINE __attribute__((noinline)) |
|
|
|
#define NOINLINE __attribute__((noinline)) |
|
|
|
#elif defined(_MSC_VER) |
|
|
|
#elif defined(_MSC_VER) |
|
|
|
#define NOINLINE __declspec(noinline) |
|
|
|
#define NOINLINE __declspec(noinline) |
|
|
@ -48,7 +48,7 @@ BOOST_AUTO_TEST_SUITE(bignum_tests) |
|
|
|
// that -ftrapv will detect overflows.
|
|
|
|
// that -ftrapv will detect overflows.
|
|
|
|
NOINLINE void mysetint64(CBigNum& num, int64 n) |
|
|
|
NOINLINE void mysetint64(CBigNum& num, int64 n) |
|
|
|
{ |
|
|
|
{ |
|
|
|
num.setint64(n); |
|
|
|
num.setint64(n); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// For each number, we do 2 tests: one with inline code, then we reset the
|
|
|
|
// For each number, we do 2 tests: one with inline code, then we reset the
|
|
|
|