10 #include <gtest/gtest.h> 22 EXPECT_EQ(val_r, val_r_ok);
24 EXPECT_EQ(
val, val_r_ok);
28 const int8_t val_r_ok = 0x66;
31 EXPECT_EQ(val_r, val_r_ok);
33 EXPECT_EQ(
val, val_r_ok);
40 EXPECT_EQ(val_r, val_r_ok);
42 EXPECT_EQ(
val, val_r_ok);
46 const int16_t val_r_ok = 0x2211;
49 EXPECT_EQ(val_r, val_r_ok);
51 EXPECT_EQ(
val, val_r_ok);
58 EXPECT_EQ(val_r, val_r_ok);
60 EXPECT_EQ(
val, val_r_ok);
67 EXPECT_EQ(val_r, val_r_ok);
69 EXPECT_EQ(
val, val_r_ok);
73 const uint64_t val_r_ok = UINT64_C(0x8877665544332211);
76 EXPECT_EQ(val_r, val_r_ok);
78 EXPECT_EQ(
val, val_r_ok);
81 int64_t val = INT64_C(0x1122334455667766), val_r;
82 const int64_t val_r_ok = INT64_C(0x6677665544332211);
85 EXPECT_EQ(val_r, val_r_ok);
87 EXPECT_EQ(
val, val_r_ok);
91 bool valFalse =
false;
95 EXPECT_FALSE(valFalse);
101 EXPECT_EQ(
val, 0xc1);
110 EXPECT_EQ(val_check, val_r_ok);
119 EXPECT_EQ(val_check, val_r_ok);
unsigned __int16 uint16_t
void reverseBytes(const T &v_in, T &v_out)
Reverse the order of the bytes of a given type (useful for transforming btw little/big endian) ...
void reverseBytesInPlace(bool &v_in_out)
Reverse the order of the bytes of a given type (useful for transforming btw little/big endian) ...
unsigned __int64 uint64_t
Dest bit_cast(const Source &source)
unsigned __int32 uint32_t