Go to the source code of this file.
Value:
#define EXPECT_EQ(val1, val2)
void swap(SwapTrackingAlloc< T > &, SwapTrackingAlloc< T > &)
Referenced by TEST().
Value:
#define EXPECT_EQ(val1, val2)
Definition at line 23 of file EndianTest.cpp.
References GEN, uint16_t, uint32_t, uint64_t, and uint8_t.
30 uint64_t v64 = 0x123456789abcdef0ULL;
31 uint64_t v64s = 0xf0debc9a78563412ULL;
33 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ 36 EXPECT_EQ(v##sz, Endian::little(v##sz)); \ 37 EXPECT_EQ(v##sz, Endian::little##sz(v##sz)); \ 38 EXPECT_EQ(v##sz##s, Endian::big(v##sz)); \ 39 EXPECT_EQ(v##sz##s, Endian::big##sz(v##sz)); 41 #elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ 44 EXPECT_EQ(v##sz##s, Endian::little(v##sz)); \ 45 EXPECT_EQ(v##sz##s, Endian::little##sz(v##sz)); \ 46 EXPECT_EQ(v##sz, Endian::big(v##sz)); \ 47 EXPECT_EQ(v##sz, Endian::big##sz(v##sz)); 50 #error Your machine uses a weird endianness! 54 EXPECT_EQ(v##sz##s, Endian::swap(v##sz)); \ 55 EXPECT_EQ(v##sz##s, Endian::swap##sz(v##sz)); \