8#ifndef BITCOIN_COMPAT_ASSUMPTIONS_H
9#define BITCOIN_COMPAT_ASSUMPTIONS_H
18static_assert(std::numeric_limits<float>::is_iec559,
"IEEE 754 float assumed");
19static_assert(std::numeric_limits<double>::is_iec559,
"IEEE 754 double assumed");
24static_assert(std::numeric_limits<unsigned char>::digits == 8,
"8-bit byte assumed");
29static_assert(
sizeof(short) == 2,
"16-bit short assumed");
30static_assert(
sizeof(int) == 4,
"32-bit int assumed");
31static_assert(
sizeof(unsigned) == 4,
"32-bit unsigned assumed");
36static_assert(
sizeof(size_t) == 4 ||
sizeof(
size_t) == 8,
"size_t assumed to be 32-bit or 64-bit");
37static_assert(
sizeof(size_t) ==
sizeof(
void*),
"Sizes of size_t and void* assumed to be equal");