diff options
author | Sven Göthel <[email protected]> | 2024-02-25 05:29:07 +0100 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-02-25 05:29:07 +0100 |
commit | d658b6059d7e7513b60c5c67019b76c9cd3f809b (patch) | |
tree | 3a14fb43a5d575c3216c0ef28b2a0290d72a28b0 /test/test_basictypeconv.cpp | |
parent | 065d90c5f04970b7fcfeb191064ac0bf6d46151f (diff) |
Rename uint{128,192,256}_t -> uint{128,192,256}dp_t, avoiding collision with native or full uint128_t etc definitions; 'dp' stands for data-pack
Diffstat (limited to 'test/test_basictypeconv.cpp')
-rw-r--r-- | test/test_basictypeconv.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/test/test_basictypeconv.cpp b/test/test_basictypeconv.cpp index 19c2640..62b5550 100644 --- a/test/test_basictypeconv.cpp +++ b/test/test_basictypeconv.cpp @@ -217,21 +217,21 @@ TEST_CASE( "Integer Type Byte Order Test 01", "[byteorder][bswap]" ) { test_byteorder(cpu, le, be); } { - jau::uint128_t le = compose<jau::uint128_t>(0x01, true /* little_endian */); - jau::uint128_t be = compose<jau::uint128_t>(0x01, false /* little_endian */); - jau::uint128_t cpu = jau::isLittleEndian() ? le : be; + jau::uint128dp_t le = compose<jau::uint128dp_t>(0x01, true /* little_endian */); + jau::uint128dp_t be = compose<jau::uint128dp_t>(0x01, false /* little_endian */); + jau::uint128dp_t cpu = jau::isLittleEndian() ? le : be; test_byteorder(cpu, le, be); } { - jau::uint192_t le = compose<jau::uint192_t>(0x01, true /* little_endian */); - jau::uint192_t be = compose<jau::uint192_t>(0x01, false /* little_endian */); - jau::uint192_t cpu = jau::isLittleEndian() ? le : be; + jau::uint192dp_t le = compose<jau::uint192dp_t>(0x01, true /* little_endian */); + jau::uint192dp_t be = compose<jau::uint192dp_t>(0x01, false /* little_endian */); + jau::uint192dp_t cpu = jau::isLittleEndian() ? le : be; test_byteorder(cpu, le, be); } { - jau::uint256_t le = compose<jau::uint256_t>(0x01, true /* little_endian */); - jau::uint256_t be = compose<jau::uint256_t>(0x01, false /* little_endian */); - jau::uint256_t cpu = jau::isLittleEndian() ? le : be; + jau::uint256dp_t le = compose<jau::uint256dp_t>(0x01, true /* little_endian */); + jau::uint256dp_t be = compose<jau::uint256dp_t>(0x01, false /* little_endian */); + jau::uint256dp_t cpu = jau::isLittleEndian() ? le : be; test_byteorder(cpu, le, be); } } @@ -268,21 +268,21 @@ TEST_CASE( "Integer Get/Put in CPU Byte Order Test 02", "[byteorder][get][put]" test_value_cpu(a, b, c); } { - jau::uint128_t a = compose<jau::uint128_t>(0x01, jau::isLittleEndian()); - jau::uint128_t b = compose<jau::uint128_t>(0x20, jau::isLittleEndian()); - jau::uint128_t c = compose<jau::uint128_t>(0x40, jau::isLittleEndian()); + jau::uint128dp_t a = compose<jau::uint128dp_t>(0x01, jau::isLittleEndian()); + jau::uint128dp_t b = compose<jau::uint128dp_t>(0x20, jau::isLittleEndian()); + jau::uint128dp_t c = compose<jau::uint128dp_t>(0x40, jau::isLittleEndian()); test_value_cpu(a, b, c); } { - jau::uint192_t a = compose<jau::uint192_t>(0x01, jau::isLittleEndian()); - jau::uint192_t b = compose<jau::uint192_t>(0x20, jau::isLittleEndian()); - jau::uint192_t c = compose<jau::uint192_t>(0x40, jau::isLittleEndian()); + jau::uint192dp_t a = compose<jau::uint192dp_t>(0x01, jau::isLittleEndian()); + jau::uint192dp_t b = compose<jau::uint192dp_t>(0x20, jau::isLittleEndian()); + jau::uint192dp_t c = compose<jau::uint192dp_t>(0x40, jau::isLittleEndian()); test_value_cpu(a, b, c); } { - jau::uint256_t a = compose<jau::uint256_t>(0x01, jau::isLittleEndian()); - jau::uint256_t b = compose<jau::uint256_t>(0x20, jau::isLittleEndian()); - jau::uint256_t c = compose<jau::uint256_t>(0x40, jau::isLittleEndian()); + jau::uint256dp_t a = compose<jau::uint256dp_t>(0x01, jau::isLittleEndian()); + jau::uint256dp_t b = compose<jau::uint256dp_t>(0x20, jau::isLittleEndian()); + jau::uint256dp_t c = compose<jau::uint256dp_t>(0x40, jau::isLittleEndian()); test_value_cpu(a, b, c); } } @@ -332,21 +332,21 @@ TEST_CASE( "Integer Get/Put in explicit Byte Order Test 03", "[byteorder][get][p test_value_littlebig(cpu, le, be); } { - jau::uint128_t le = compose<jau::uint128_t>(0x01, true /* little_endian */); - jau::uint128_t be = compose<jau::uint128_t>(0x01, false /* little_endian */); - jau::uint128_t cpu = jau::isLittleEndian() ? le : be; + jau::uint128dp_t le = compose<jau::uint128dp_t>(0x01, true /* little_endian */); + jau::uint128dp_t be = compose<jau::uint128dp_t>(0x01, false /* little_endian */); + jau::uint128dp_t cpu = jau::isLittleEndian() ? le : be; test_value_littlebig(cpu, le, be); } { - jau::uint192_t le = compose<jau::uint192_t>(0x01, true /* little_endian */); - jau::uint192_t be = compose<jau::uint192_t>(0x01, false /* little_endian */); - jau::uint192_t cpu = jau::isLittleEndian() ? le : be; + jau::uint192dp_t le = compose<jau::uint192dp_t>(0x01, true /* little_endian */); + jau::uint192dp_t be = compose<jau::uint192dp_t>(0x01, false /* little_endian */); + jau::uint192dp_t cpu = jau::isLittleEndian() ? le : be; test_value_littlebig(cpu, le, be); } { - jau::uint256_t le = compose<jau::uint256_t>(0x01, true /* little_endian */); - jau::uint256_t be = compose<jau::uint256_t>(0x01, false /* little_endian */); - jau::uint256_t cpu = jau::isLittleEndian() ? le : be; + jau::uint256dp_t le = compose<jau::uint256dp_t>(0x01, true /* little_endian */); + jau::uint256dp_t be = compose<jau::uint256dp_t>(0x01, false /* little_endian */); + jau::uint256dp_t cpu = jau::isLittleEndian() ? le : be; test_value_littlebig(cpu, le, be); } } |