Lines Matching refs:getSwappedBytes
32 TEST(getSwappedBytes, UnsignedRoundTrip) { in TEST() argument
39 sys::getSwappedBytes(sys::getSwappedBytes(original_uint8))); in TEST()
43 sys::getSwappedBytes(sys::getSwappedBytes(original_uint16))); in TEST()
47 sys::getSwappedBytes(sys::getSwappedBytes(original_uint32))); in TEST()
51 sys::getSwappedBytes(sys::getSwappedBytes(original_uint64))); in TEST()
57 TEST(getSwappedBytes, SignedRoundTrip) { in TEST() argument
64 sys::getSwappedBytes(sys::getSwappedBytes(original_int8))); in TEST()
68 sys::getSwappedBytes(sys::getSwappedBytes(original_int16))); in TEST()
72 sys::getSwappedBytes(sys::getSwappedBytes(original_int32))); in TEST()
76 sys::getSwappedBytes(sys::getSwappedBytes(original_int64))); in TEST()
83 sys::getSwappedBytes(sys::getSwappedBytes(original_int8))); in TEST()
87 sys::getSwappedBytes(sys::getSwappedBytes(original_int16))); in TEST()
91 sys::getSwappedBytes(sys::getSwappedBytes(original_int32))); in TEST()
95 sys::getSwappedBytes(sys::getSwappedBytes(original_int64))); in TEST()
103 TEST(getSwappedBytes, uint8_t) { in TEST() argument
104 EXPECT_EQ(uint8_t(0x11), sys::getSwappedBytes(uint8_t(0x11))); in TEST()
107 TEST(getSwappedBytes, uint16_t) { in TEST() argument
108 EXPECT_EQ(uint16_t(0x1122), sys::getSwappedBytes(uint16_t(0x2211))); in TEST()
111 TEST(getSwappedBytes, uint32_t) { in TEST() argument
112 EXPECT_EQ(uint32_t(0x11223344), sys::getSwappedBytes(uint32_t(0x44332211))); in TEST()
115 TEST(getSwappedBytes, uint64_t) { in TEST() argument
117 sys::getSwappedBytes(uint64_t(0x8877665544332211ULL))); in TEST()
120 TEST(getSwappedBytes, int8_t) { in TEST() argument
121 EXPECT_EQ(int8_t(0x11), sys::getSwappedBytes(int8_t(0x11))); in TEST()
124 TEST(getSwappedBytes, int16_t) { in TEST() argument
125 EXPECT_EQ(int16_t(0x1122), sys::getSwappedBytes(int16_t(0x2211))); in TEST()
128 TEST(getSwappedBytes, int32_t) { in TEST() argument
129 EXPECT_EQ(int32_t(0x11223344), sys::getSwappedBytes(int32_t(0x44332211))); in TEST()
132 TEST(getSwappedBytes, int64_t) { in TEST() argument
134 sys::getSwappedBytes(int64_t(0x8877665544332211LL))); in TEST()
137 TEST(getSwappedBytes, float) { in TEST() argument
138 EXPECT_EQ(1.79366203433576585078237386661e-43f, sys::getSwappedBytes(-0.0f)); in TEST()
140 EXPECT_EQ(7.1653228759765625e2f, sys::getSwappedBytes(1.2795344e-28f)); in TEST()
143 TEST(getSwappedBytes, double) { in TEST() argument
144 EXPECT_EQ(6.32404026676795576546008054871e-322, sys::getSwappedBytes(-0.0)); in TEST()
147 sys::getSwappedBytes(3.84141202447173065923064450234e-226)); in TEST()