Lines Matching refs:getSwappedBytes
23 TEST(getSwappedBytes, UnsignedRoundTrip) { in TEST() argument
30 sys::getSwappedBytes(sys::getSwappedBytes(original_uint8))); in TEST()
34 sys::getSwappedBytes(sys::getSwappedBytes(original_uint16))); in TEST()
38 sys::getSwappedBytes(sys::getSwappedBytes(original_uint32))); in TEST()
42 sys::getSwappedBytes(sys::getSwappedBytes(original_uint64))); in TEST()
48 TEST(getSwappedBytes, SignedRoundTrip) { in TEST() argument
55 sys::getSwappedBytes(sys::getSwappedBytes(original_int8))); in TEST()
59 sys::getSwappedBytes(sys::getSwappedBytes(original_int16))); in TEST()
63 sys::getSwappedBytes(sys::getSwappedBytes(original_int32))); in TEST()
67 sys::getSwappedBytes(sys::getSwappedBytes(original_int64))); in TEST()
74 sys::getSwappedBytes(sys::getSwappedBytes(original_int8))); in TEST()
78 sys::getSwappedBytes(sys::getSwappedBytes(original_int16))); in TEST()
82 sys::getSwappedBytes(sys::getSwappedBytes(original_int32))); in TEST()
86 sys::getSwappedBytes(sys::getSwappedBytes(original_int64))); in TEST()
94 TEST(getSwappedBytes, uint8_t) { in TEST() argument
95 EXPECT_EQ(uint8_t(0x11), sys::getSwappedBytes(uint8_t(0x11))); in TEST()
98 TEST(getSwappedBytes, uint16_t) { in TEST() argument
99 EXPECT_EQ(uint16_t(0x1122), sys::getSwappedBytes(uint16_t(0x2211))); in TEST()
102 TEST(getSwappedBytes, uint32_t) { in TEST() argument
103 EXPECT_EQ(uint32_t(0x11223344), sys::getSwappedBytes(uint32_t(0x44332211))); in TEST()
106 TEST(getSwappedBytes, uint64_t) { in TEST() argument
108 sys::getSwappedBytes(uint64_t(0x8877665544332211ULL))); in TEST()
111 TEST(getSwappedBytes, int8_t) { in TEST() argument
112 EXPECT_EQ(int8_t(0x11), sys::getSwappedBytes(int8_t(0x11))); in TEST()
115 TEST(getSwappedBytes, int16_t) { in TEST() argument
116 EXPECT_EQ(int16_t(0x1122), sys::getSwappedBytes(int16_t(0x2211))); in TEST()
119 TEST(getSwappedBytes, int32_t) { in TEST() argument
120 EXPECT_EQ(int32_t(0x11223344), sys::getSwappedBytes(int32_t(0x44332211))); in TEST()
123 TEST(getSwappedBytes, int64_t) { in TEST() argument
125 sys::getSwappedBytes(int64_t(0x8877665544332211LL))); in TEST()
128 TEST(getSwappedBytes, float) { in TEST() argument
129 EXPECT_EQ(1.79366203433576585078237386661e-43f, sys::getSwappedBytes(-0.0f)); in TEST()
131 EXPECT_EQ(7.1653228759765625e2f, sys::getSwappedBytes(1.2795344e-28f)); in TEST()
134 TEST(getSwappedBytes, double) { in TEST() argument
135 EXPECT_EQ(6.32404026676795576546008054871e-322, sys::getSwappedBytes(-0.0)); in TEST()
138 sys::getSwappedBytes(3.84141202447173065923064450234e-226)); in TEST()