diff --git a/doc/conversion.html b/doc/conversion.html
index 1dda49e..4cf3236 100644
--- a/doc/conversion.html
+++ b/doc/conversion.html
@@ -191,7 +191,7 @@ namespace endian
template <class Reversible>
void little_endian(Reversible& x) noexcept;
- // synonyms, based on names popularized by BSD (e.g. OS X, Linux)
+ // synonyms, based on names popularized by BSD (e.g. OS X, Linux) endian.h
// "h" for "host" (i.e. native), "be" for "big endian",
// "le" for "little endian", "m" for "modify" in place
template <class T> T bswap(T x) noexcept {return reverse_value(x);}
diff --git a/include/boost/endian/types.hpp b/include/boost/endian/types.hpp
index 0215b9e..e2f73a5 100644
--- a/include/boost/endian/types.hpp
+++ b/include/boost/endian/types.hpp
@@ -335,64 +335,64 @@ namespace endian
// naming convention typedefs ------------------------------------------------------//
// unaligned big endian signed integer types
- typedef endian< order::big, int_least8_t, 8 > big_int8_t;
- typedef endian< order::big, int_least16_t, 16 > big_int16_t;
- typedef endian< order::big, int_least32_t, 24 > big_int24_t;
- typedef endian< order::big, int_least32_t, 32 > big_int32_t;
- typedef endian< order::big, int_least64_t, 40 > big_int40_t;
- typedef endian< order::big, int_least64_t, 48 > big_int48_t;
- typedef endian< order::big, int_least64_t, 56 > big_int56_t;
- typedef endian< order::big, int_least64_t, 64 > big_int64_t;
+ typedef endian< order::big, int_least8_t, 8 > big_8_t;
+ typedef endian< order::big, int_least16_t, 16 > big_16_t;
+ typedef endian< order::big, int_least32_t, 24 > big_24_t;
+ typedef endian< order::big, int_least32_t, 32 > big_32_t;
+ typedef endian< order::big, int_least64_t, 40 > big_40_t;
+ typedef endian< order::big, int_least64_t, 48 > big_48_t;
+ typedef endian< order::big, int_least64_t, 56 > big_56_t;
+ typedef endian< order::big, int_least64_t, 64 > big_64_t;
// unaligned big endian unsigned integer types
- typedef endian< order::big, uint_least8_t, 8 > big_uint8_t;
- typedef endian< order::big, uint_least16_t, 16 > big_uint16_t;
- typedef endian< order::big, uint_least32_t, 24 > big_uint24_t;
- typedef endian< order::big, uint_least32_t, 32 > big_uint32_t;
- typedef endian< order::big, uint_least64_t, 40 > big_uint40_t;
- typedef endian< order::big, uint_least64_t, 48 > big_uint48_t;
- typedef endian< order::big, uint_least64_t, 56 > big_uint56_t;
- typedef endian< order::big, uint_least64_t, 64 > big_uint64_t;
+ typedef endian< order::big, uint_least8_t, 8 > big_u8_t;
+ typedef endian< order::big, uint_least16_t, 16 > big_u16_t;
+ typedef endian< order::big, uint_least32_t, 24 > big_u24_t;
+ typedef endian< order::big, uint_least32_t, 32 > big_u32_t;
+ typedef endian< order::big, uint_least64_t, 40 > big_u40_t;
+ typedef endian< order::big, uint_least64_t, 48 > big_u48_t;
+ typedef endian< order::big, uint_least64_t, 56 > big_u56_t;
+ typedef endian< order::big, uint_least64_t, 64 > big_u64_t;
// unaligned little endian signed integer types
- typedef endian< order::little, int_least8_t, 8 > little_int8_t;
- typedef endian< order::little, int_least16_t, 16 > little_int16_t;
- typedef endian< order::little, int_least32_t, 24 > little_int24_t;
- typedef endian< order::little, int_least32_t, 32 > little_int32_t;
- typedef endian< order::little, int_least64_t, 40 > little_int40_t;
- typedef endian< order::little, int_least64_t, 48 > little_int48_t;
- typedef endian< order::little, int_least64_t, 56 > little_int56_t;
- typedef endian< order::little, int_least64_t, 64 > little_int64_t;
+ typedef endian< order::little, int_least8_t, 8 > little_8_t;
+ typedef endian< order::little, int_least16_t, 16 > little_16_t;
+ typedef endian< order::little, int_least32_t, 24 > little_24_t;
+ typedef endian< order::little, int_least32_t, 32 > little_32_t;
+ typedef endian< order::little, int_least64_t, 40 > little_40_t;
+ typedef endian< order::little, int_least64_t, 48 > little_48_t;
+ typedef endian< order::little, int_least64_t, 56 > little_56_t;
+ typedef endian< order::little, int_least64_t, 64 > little_64_t;
// unaligned little endian unsigned integer types
- typedef endian< order::little, uint_least8_t, 8 > little_uint8_t;
- typedef endian< order::little, uint_least16_t, 16 > little_uint16_t;
- typedef endian< order::little, uint_least32_t, 24 > little_uint24_t;
- typedef endian< order::little, uint_least32_t, 32 > little_uint32_t;
- typedef endian< order::little, uint_least64_t, 40 > little_uint40_t;
- typedef endian< order::little, uint_least64_t, 48 > little_uint48_t;
- typedef endian< order::little, uint_least64_t, 56 > little_uint56_t;
- typedef endian< order::little, uint_least64_t, 64 > little_uint64_t;
+ typedef endian< order::little, uint_least8_t, 8 > little_u8_t;
+ typedef endian< order::little, uint_least16_t, 16 > little_u16_t;
+ typedef endian< order::little, uint_least32_t, 24 > little_u24_t;
+ typedef endian< order::little, uint_least32_t, 32 > little_u32_t;
+ typedef endian< order::little, uint_least64_t, 40 > little_u40_t;
+ typedef endian< order::little, uint_least64_t, 48 > little_u48_t;
+ typedef endian< order::little, uint_least64_t, 56 > little_u56_t;
+ typedef endian< order::little, uint_least64_t, 64 > little_u64_t;
// unaligned native endian signed integer types
- typedef endian< order::native, int_least8_t, 8 > native_int8_t;
- typedef endian< order::native, int_least16_t, 16 > native_int16_t;
- typedef endian< order::native, int_least32_t, 24 > native_int24_t;
- typedef endian< order::native, int_least32_t, 32 > native_int32_t;
- typedef endian< order::native, int_least64_t, 40 > native_int40_t;
- typedef endian< order::native, int_least64_t, 48 > native_int48_t;
- typedef endian< order::native, int_least64_t, 56 > native_int56_t;
- typedef endian< order::native, int_least64_t, 64 > native_int64_t;
+ typedef endian< order::native, int_least8_t, 8 > native_8_t;
+ typedef endian< order::native, int_least16_t, 16 > native_16_t;
+ typedef endian< order::native, int_least32_t, 24 > native_24_t;
+ typedef endian< order::native, int_least32_t, 32 > native_32_t;
+ typedef endian< order::native, int_least64_t, 40 > native_40_t;
+ typedef endian< order::native, int_least64_t, 48 > native_48_t;
+ typedef endian< order::native, int_least64_t, 56 > native_56_t;
+ typedef endian< order::native, int_least64_t, 64 > native_64_t;
// unaligned native endian unsigned integer types
- typedef endian< order::native, uint_least8_t, 8 > native_uint8_t;
- typedef endian< order::native, uint_least16_t, 16 > native_uint16_t;
- typedef endian< order::native, uint_least32_t, 24 > native_uint24_t;
- typedef endian< order::native, uint_least32_t, 32 > native_uint32_t;
- typedef endian< order::native, uint_least64_t, 40 > native_uint40_t;
- typedef endian< order::native, uint_least64_t, 48 > native_uint48_t;
- typedef endian< order::native, uint_least64_t, 56 > native_uint56_t;
- typedef endian< order::native, uint_least64_t, 64 > native_uint64_t;
+ typedef endian< order::native, uint_least8_t, 8 > native_u8_t;
+ typedef endian< order::native, uint_least16_t, 16 > native_u16_t;
+ typedef endian< order::native, uint_least32_t, 24 > native_u24_t;
+ typedef endian< order::native, uint_least32_t, 32 > native_u32_t;
+ typedef endian< order::native, uint_least64_t, 40 > native_u40_t;
+ typedef endian< order::native, uint_least64_t, 48 > native_u48_t;
+ typedef endian< order::native, uint_least64_t, 56 > native_u56_t;
+ typedef endian< order::native, uint_least64_t, 64 > native_u64_t;
#define BOOST_HAS_INT16_T
#define BOOST_HAS_INT32_T
@@ -408,24 +408,24 @@ namespace endian
// types are superior for this use case
# if defined(BOOST_HAS_INT16_T)
- typedef endian< order::big, int16_t, 16, alignment::aligned > big_aligned_int16_t;
- typedef endian< order::big, uint16_t, 16, alignment::aligned > big_aligned_uint16_t;
- typedef endian< order::little, int16_t, 16, alignment::aligned > little_aligned_int16_t;
- typedef endian< order::little, uint16_t, 16, alignment::aligned > little_aligned_uint16_t;
+ typedef endian< order::big, int16_t, 16, alignment::aligned > big_int16_t;
+ typedef endian< order::big, uint16_t, 16, alignment::aligned > big_uint16_t;
+ typedef endian< order::little, int16_t, 16, alignment::aligned > little_int16_t;
+ typedef endian< order::little, uint16_t, 16, alignment::aligned > little_uint16_t;
# endif
# if defined(BOOST_HAS_INT32_T)
- typedef endian< order::big, int32_t, 32, alignment::aligned > big_aligned_int32_t;
- typedef endian< order::big, uint32_t, 32, alignment::aligned > big_aligned_uint32_t;
- typedef endian< order::little, int32_t, 32, alignment::aligned > little_aligned_int32_t;
- typedef endian< order::little, uint32_t, 32, alignment::aligned > little_aligned_uint32_t;
+ typedef endian< order::big, int32_t, 32, alignment::aligned > big_int32_t;
+ typedef endian< order::big, uint32_t, 32, alignment::aligned > big_uint32_t;
+ typedef endian< order::little, int32_t, 32, alignment::aligned > little_int32_t;
+ typedef endian< order::little, uint32_t, 32, alignment::aligned > little_uint32_t;
# endif
# if defined(BOOST_HAS_INT64_T)
- typedef endian< order::big, int64_t, 64, alignment::aligned > big_aligned_int64_t;
- typedef endian< order::big, uint64_t, 64, alignment::aligned > big_aligned_uint64_t;
- typedef endian< order::little, int64_t, 64, alignment::aligned > little_aligned_int64_t;
- typedef endian< order::little, uint64_t, 64, alignment::aligned > little_aligned_uint64_t;
+ typedef endian< order::big, int64_t, 64, alignment::aligned > big_int64_t;
+ typedef endian< order::big, uint64_t, 64, alignment::aligned > big_uint64_t;
+ typedef endian< order::little, int64_t, 64, alignment::aligned > little_int64_t;
+ typedef endian< order::little, uint64_t, 64, alignment::aligned > little_uint64_t;
# endif
} // namespace endian
diff --git a/test/endian_in_union_test.cpp b/test/endian_in_union_test.cpp
index 85b4964..87e868b 100644
--- a/test/endian_in_union_test.cpp
+++ b/test/endian_in_union_test.cpp
@@ -21,59 +21,59 @@ using namespace boost::endian;
union U
{
- big_int8_t big_int8;
- big_int16_t big_int16;
- big_int24_t big_int24;
- big_int32_t big_int32;
- big_int40_t big_int40;
- big_int48_t big_int48;
- big_int56_t big_int56;
- big_int64_t big_int64;
+ big_8_t big_8;
+ big_16_t big_16;
+ big_24_t big_24;
+ big_32_t big_32;
+ big_40_t big_40;
+ big_48_t big_48;
+ big_56_t big_56;
+ big_64_t big_64;
- big_uint8_t big_uint8;
- big_uint16_t big_uint16;
- big_uint24_t big_uint24;
- big_uint32_t big_uint32;
- big_uint40_t big_uint40;
- big_uint48_t big_uint48;
- big_uint56_t big_uint56;
- big_uint64_t big_uint64;
+ big_u8_t big_u8;
+ big_u16_t big_u16;
+ big_u24_t big_u24;
+ big_u32_t big_u32;
+ big_u40_t big_u40;
+ big_u48_t big_u48;
+ big_u56_t big_u56;
+ big_u64_t big_u64;
- little_int8_t little_int8;
- little_int16_t little_int16;
- little_int24_t little_int24;
- little_int32_t little_int32;
- little_int40_t little_int40;
- little_int48_t little_int48;
- little_int56_t little_int56;
- little_int64_t little_int64;
+ little_8_t little_8;
+ little_16_t little_16;
+ little_24_t little_24;
+ little_32_t little_32;
+ little_40_t little_40;
+ little_48_t little_48;
+ little_56_t little_56;
+ little_64_t little_64;
- little_uint8_t little_uint8;
- little_uint16_t little_uint16;
- little_uint24_t little_uint24;
- little_uint32_t little_uint32;
- little_uint40_t little_uint40;
- little_uint48_t little_uint48;
- little_uint56_t little_uint56;
- little_uint64_t little_uint64;
+ little_u8_t little_u8;
+ little_u16_t little_u16;
+ little_u24_t little_u24;
+ little_u32_t little_u32;
+ little_u40_t little_u40;
+ little_u48_t little_u48;
+ little_u56_t little_u56;
+ little_u64_t little_u64;
- native_int8_t native_int8;
- native_int16_t native_int16;
- native_int24_t native_int24;
- native_int32_t native_int32;
- native_int40_t native_int40;
- native_int48_t native_int48;
- native_int56_t native_int56;
- native_int64_t native_int64;
+ native_8_t native_8;
+ native_16_t native_16;
+ native_24_t native_24;
+ native_32_t native_32;
+ native_40_t native_40;
+ native_48_t native_48;
+ native_56_t native_56;
+ native_64_t native_64;
- native_uint8_t native_uint8;
- native_uint16_t native_uint16;
- native_uint24_t native_uint24;
- native_uint32_t native_uint32;
- native_uint40_t native_uint40;
- native_uint48_t native_uint48;
- native_uint56_t native_uint56;
- native_uint64_t native_uint64;
+ native_u8_t native_u8;
+ native_u16_t native_u16;
+ native_u24_t native_u24;
+ native_u32_t native_u32;
+ native_u40_t native_u40;
+ native_u48_t native_u48;
+ native_u56_t native_u56;
+ native_u64_t native_u64;
};
U foo;
diff --git a/test/endian_operations_test.cpp b/test/endian_operations_test.cpp
index 683a186..be04e32 100644
--- a/test/endian_operations_test.cpp
+++ b/test/endian_operations_test.cpp
@@ -139,8 +139,8 @@ void op_test_aux()
#ifdef BOOST_SHORT_ENDIAN_TEST
Test::test();
Test::test();
- Test::test();
- Test::test();
+ Test::test();
+ Test::test();
#else
Test::test();
Test::test();
@@ -153,54 +153,54 @@ void op_test_aux()
Test::test();
Test::test();
Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
- Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
+ Test::test();
#endif
}
@@ -210,9 +210,9 @@ void op_test()
#ifdef BOOST_SHORT_ENDIAN_TEST
op_test_aux();
op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
#else
op_test_aux();
op_test_aux();
@@ -225,54 +225,54 @@ void op_test()
op_test_aux();
op_test_aux();
op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
- op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
+ op_test_aux();
#endif
}
@@ -284,10 +284,10 @@ int cpp_main(int, char * [])
// make sure some simple things work
- be::big_int32_t o1(1);
- be::big_int32_t o2(2L);
- be::big_int32_t o3(3LL);
- be::big_int64_t o4(1);
+ be::big_32_t o1(1);
+ be::big_32_t o2(2L);
+ be::big_32_t o3(3LL);
+ be::big_64_t o4(1);
// use cases; if BOOST_ENDIAN_LOG is defined, will output to clog info on
// what overloads and conversions are actually being performed.
@@ -295,9 +295,9 @@ int cpp_main(int, char * [])
be::endian_log = true;
std::clog << "set up test values\n";
- be::big_int32_t big(12345);
- be::little_uint16_t little_uint(10);
- be::big_int64_t result;
+ be::big_32_t big(12345);
+ be::little_u16_t little_u(10);
+ be::big_64_t result;
std::clog << "\nresult = +big\n";
@@ -324,14 +324,14 @@ int cpp_main(int, char * [])
std::clog << "\nresult = big * big\n";
result = big * big;
- std::clog << "\nresult = big * little_uint\n";
- result = big * little_uint;
+ std::clog << "\nresult = big * little_u\n";
+ result = big * little_u;
- std::clog << "\nbig *= little_uint\n";
- big *= little_uint;
+ std::clog << "\nbig *= little_u\n";
+ big *= little_u;
- std::clog << "\nresult = little_uint * big\n";
- result = little_uint * big;
+ std::clog << "\nresult = little_u * big\n";
+ result = little_u * big;
std::clog << "\nresult = big * 5\n";
result = big * 5;
@@ -342,11 +342,11 @@ int cpp_main(int, char * [])
std::clog << "\nresult = 5 * big\n";
result = 5 * big;
- std::clog << "\nresult = little_uint * 5\n";
- result = little_uint * 5;
+ std::clog << "\nresult = little_u * 5\n";
+ result = little_u * 5;
- std::clog << "\nresult = 5 * little_uint\n";
- result = 5 * little_uint;
+ std::clog << "\nresult = 5 * little_u\n";
+ result = 5 * little_u;
std::clog << "\nresult = 5 * 10\n";
result = 5 * 10;
@@ -356,15 +356,15 @@ int cpp_main(int, char * [])
// test from Roland Schwarz that detected ambiguities
unsigned u;
- be::little_uint32_t u1;
- be::little_uint32_t u2;
+ be::little_u32_t u1;
+ be::little_u32_t u2;
u = 1;
u1 = 1;
u2 = u1 + u;
// one more wrinkle
- be::little_uint16_t u3(3);
+ be::little_u16_t u3(3);
u3 = 3;
u2 = u1 + u3;
diff --git a/test/endian_test.cpp b/test/endian_test.cpp
index 36ac7af..eb32be8 100644
--- a/test/endian_test.cpp
+++ b/test/endian_test.cpp
@@ -153,145 +153,145 @@ namespace
void check_data()
{
- big_int8_t big_int8;
- big_int16_t big_int16;
- big_int24_t big_int24;
- big_int32_t big_int32;
- big_int40_t big_int40;
- big_int48_t big_int48;
- big_int56_t big_int56;
- big_int64_t big_int64;
+ big_8_t big_8;
+ big_16_t big_16;
+ big_24_t big_24;
+ big_32_t big_32;
+ big_40_t big_40;
+ big_48_t big_48;
+ big_56_t big_56;
+ big_64_t big_64;
+
+ big_u8_t big_u8;
+ big_u16_t big_u16;
+ big_u24_t big_u24;
+ big_u32_t big_u32;
+ big_u40_t big_u40;
+ big_u48_t big_u48;
+ big_u56_t big_u56;
+ big_u64_t big_u64;
+
+ little_8_t little_8;
+ little_16_t little_16;
+ little_24_t little_24;
+ little_32_t little_32;
+ little_40_t little_40;
+ little_48_t little_48;
+ little_56_t little_56;
+ little_64_t little_64;
+
+ little_u8_t little_u8;
+ little_u16_t little_u16;
+ little_u24_t little_u24;
+ little_u32_t little_u32;
+ little_u40_t little_u40;
+ little_u48_t little_u48;
+ little_u56_t little_u56;
+ little_u64_t little_u64;
+
+ native_8_t native_8;
+ native_16_t native_16;
+ native_24_t native_24;
+ native_32_t native_32;
+ native_40_t native_40;
+ native_48_t native_48;
+ native_56_t native_56;
+ native_64_t native_64;
+
+ native_u8_t native_u8;
+ native_u16_t native_u16;
+ native_u24_t native_u24;
+ native_u32_t native_u32;
+ native_u40_t native_u40;
+ native_u48_t native_u48;
+ native_u56_t native_u56;
+ native_u64_t native_u64;
+
+ big_int16_t big_int16;
+ big_int32_t big_int32;
+ big_int64_t big_int64;
- big_uint8_t big_uint8;
big_uint16_t big_uint16;
- big_uint24_t big_uint24;
big_uint32_t big_uint32;
- big_uint40_t big_uint40;
- big_uint48_t big_uint48;
- big_uint56_t big_uint56;
big_uint64_t big_uint64;
- little_int8_t little_int8;
- little_int16_t little_int16;
- little_int24_t little_int24;
- little_int32_t little_int32;
- little_int40_t little_int40;
- little_int48_t little_int48;
- little_int56_t little_int56;
- little_int64_t little_int64;
+ little_int16_t little_int16;
+ little_int32_t little_int32;
+ little_int64_t little_int64;
- little_uint8_t little_uint8;
- little_uint16_t little_uint16;
- little_uint24_t little_uint24;
- little_uint32_t little_uint32;
- little_uint40_t little_uint40;
- little_uint48_t little_uint48;
- little_uint56_t little_uint56;
- little_uint64_t little_uint64;
+ little_uint16_t little_uint16 ;
+ little_uint32_t little_uint32 ;
+ little_uint64_t little_uint64 ;
- native_int8_t native_int8;
- native_int16_t native_int16;
- native_int24_t native_int24;
- native_int32_t native_int32;
- native_int40_t native_int40;
- native_int48_t native_int48;
- native_int56_t native_int56;
- native_int64_t native_int64;
+ VERIFY(big_8.data() == reinterpret_cast(&big_8));
+ VERIFY(big_16.data() == reinterpret_cast(&big_16));
+ VERIFY(big_24.data() == reinterpret_cast(&big_24));
+ VERIFY(big_32.data() == reinterpret_cast(&big_32));
+ VERIFY(big_40.data() == reinterpret_cast(&big_40));
+ VERIFY(big_48.data() == reinterpret_cast(&big_48));
+ VERIFY(big_56.data() == reinterpret_cast(&big_56));
+ VERIFY(big_64.data() == reinterpret_cast(&big_64));
- native_uint8_t native_uint8;
- native_uint16_t native_uint16;
- native_uint24_t native_uint24;
- native_uint32_t native_uint32;
- native_uint40_t native_uint40;
- native_uint48_t native_uint48;
- native_uint56_t native_uint56;
- native_uint64_t native_uint64;
+ VERIFY(big_u8.data() == reinterpret_cast(&big_u8));
+ VERIFY(big_u16.data() == reinterpret_cast(&big_u16));
+ VERIFY(big_u24.data() == reinterpret_cast(&big_u24));
+ VERIFY(big_u32.data() == reinterpret_cast(&big_u32));
+ VERIFY(big_u40.data() == reinterpret_cast(&big_u40));
+ VERIFY(big_u48.data() == reinterpret_cast(&big_u48));
+ VERIFY(big_u56.data() == reinterpret_cast(&big_u56));
+ VERIFY(big_u64.data() == reinterpret_cast(&big_u64));
- big_aligned_int16_t big_aligned_int16;
- big_aligned_int32_t big_aligned_int32;
- big_aligned_int64_t big_aligned_int64;
+ VERIFY(little_8.data() == reinterpret_cast(&little_8));
+ VERIFY(little_16.data() == reinterpret_cast(&little_16));
+ VERIFY(little_24.data() == reinterpret_cast(&little_24));
+ VERIFY(little_32.data() == reinterpret_cast(&little_32));
+ VERIFY(little_40.data() == reinterpret_cast(&little_40));
+ VERIFY(little_48.data() == reinterpret_cast(&little_48));
+ VERIFY(little_56.data() == reinterpret_cast(&little_56));
+ VERIFY(little_64.data() == reinterpret_cast(&little_64));
- big_aligned_uint16_t big_aligned_uint16;
- big_aligned_uint32_t big_aligned_uint32;
- big_aligned_uint64_t big_aligned_uint64;
+ VERIFY(little_u8.data() == reinterpret_cast(&little_u8));
+ VERIFY(little_u16.data() == reinterpret_cast(&little_u16));
+ VERIFY(little_u24.data() == reinterpret_cast(&little_u24));
+ VERIFY(little_u32.data() == reinterpret_cast(&little_u32));
+ VERIFY(little_u40.data() == reinterpret_cast(&little_u40));
+ VERIFY(little_u48.data() == reinterpret_cast(&little_u48));
+ VERIFY(little_u56.data() == reinterpret_cast(&little_u56));
+ VERIFY(little_u64.data() == reinterpret_cast(&little_u64));
- little_aligned_int16_t little_aligned_int16;
- little_aligned_int32_t little_aligned_int32;
- little_aligned_int64_t little_aligned_int64;
+ VERIFY(native_8.data() == reinterpret_cast(&native_8));
+ VERIFY(native_16.data() == reinterpret_cast(&native_16));
+ VERIFY(native_24.data() == reinterpret_cast(&native_24));
+ VERIFY(native_32.data() == reinterpret_cast(&native_32));
+ VERIFY(native_40.data() == reinterpret_cast(&native_40));
+ VERIFY(native_48.data() == reinterpret_cast