mirror of
https://github.com/boostorg/endian.git
synced 2025-08-02 05:54:31 +02:00
Remove cruft left over from refactoring.
This commit is contained in:
@@ -20,70 +20,6 @@ using std::endl;
|
|||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|
||||||
const boost::int64_t ni64 = 0x0102030405060708LL;
|
|
||||||
# ifdef BOOST_BIG_ENDIAN
|
|
||||||
const boost::int64_t bi64 = 0x0102030405060708LL;
|
|
||||||
const boost::int64_t li64 = 0x0807060504030201LL;
|
|
||||||
# else
|
|
||||||
const boost::int64_t bi64 = 0x0807060504030201LL;
|
|
||||||
const boost::int64_t li64 = 0x0102030405060708LL;
|
|
||||||
# endif
|
|
||||||
|
|
||||||
const boost::int32_t ni32 = 0x01020304;
|
|
||||||
# ifdef BOOST_BIG_ENDIAN
|
|
||||||
const boost::int32_t bi32 = 0x01020304;
|
|
||||||
const boost::int32_t li32 = 0x04030201;
|
|
||||||
# else
|
|
||||||
const boost::int32_t bi32 = 0x04030201;
|
|
||||||
const boost::int32_t li32 = 0x01020304;
|
|
||||||
# endif
|
|
||||||
|
|
||||||
const boost::int16_t ni16 = 0x0102;
|
|
||||||
# ifdef BOOST_BIG_ENDIAN
|
|
||||||
const boost::int16_t bi16 = 0x0102;
|
|
||||||
const boost::int16_t li16 = 0x0201;
|
|
||||||
# else
|
|
||||||
const boost::int16_t bi16 = 0x0201;
|
|
||||||
const boost::int16_t li16 = 0x0102;
|
|
||||||
# endif
|
|
||||||
|
|
||||||
const boost::int16_t ni16hi = static_cast<boost::int16_t>(0xf1f2U);
|
|
||||||
# ifdef BOOST_BIG_ENDIAN
|
|
||||||
const boost::int16_t bi16hi = static_cast<boost::int16_t>(0xf1f2U);
|
|
||||||
const boost::int16_t li16hi = static_cast<boost::int16_t>(0xf2f1U);
|
|
||||||
# else
|
|
||||||
const boost::int16_t bi16hi = static_cast<boost::int16_t>(0xf2f1U);
|
|
||||||
const boost::int16_t li16hi = static_cast<boost::int16_t>(0xf1f2U);
|
|
||||||
# endif
|
|
||||||
|
|
||||||
const boost::uint64_t nui64 = 0x0102030405060708ULL;
|
|
||||||
# ifdef BOOST_BIG_ENDIAN
|
|
||||||
const boost::uint64_t bui64 = 0x0102030405060708ULL;
|
|
||||||
const boost::uint64_t lui64 = 0x0807060504030201ULL;
|
|
||||||
# else
|
|
||||||
const boost::uint64_t bui64 = 0x0807060504030201ULL;
|
|
||||||
const boost::uint64_t lui64 = 0x0102030405060708ULL;
|
|
||||||
# endif
|
|
||||||
|
|
||||||
const boost::uint32_t nui32 = 0x01020304;
|
|
||||||
# ifdef BOOST_BIG_ENDIAN
|
|
||||||
const boost::uint32_t bui32 = 0x01020304;
|
|
||||||
const boost::uint32_t lui32 = 0x04030201;
|
|
||||||
# else
|
|
||||||
const boost::uint32_t bui32 = 0x04030201;
|
|
||||||
const boost::uint32_t lui32 = 0x01020304;
|
|
||||||
# endif
|
|
||||||
|
|
||||||
const boost::uint16_t nui16 = 0x0102;
|
|
||||||
# ifdef BOOST_BIG_ENDIAN
|
|
||||||
const boost::uint16_t bui16 = 0x0102;
|
|
||||||
const boost::uint16_t lui16 = 0x0201;
|
|
||||||
# else
|
|
||||||
const boost::uint16_t bui16 = 0x0201;
|
|
||||||
const boost::uint16_t lui16 = 0x0102;
|
|
||||||
# endif
|
|
||||||
|
|
||||||
// values for tests
|
// values for tests
|
||||||
|
|
||||||
void native_value(int16_t& x) {x = static_cast<int16_t>(0xF102U);}
|
void native_value(int16_t& x) {x = static_cast<int16_t>(0xF102U);}
|
||||||
|
Reference in New Issue
Block a user