Searched refs:le16 (Results 1 – 3 of 3) sorted by relevance
/bionic/tests/ |
D | endian_test.cpp | 21 static constexpr uint16_t le16 = 0x1234; variable 45 ASSERT_EQ(be16, htons(le16)); in TEST() 55 ASSERT_EQ(le16, ntohs(be16)); in TEST() 64 ASSERT_EQ(be16, htobe16(le16)); in TEST() 70 ASSERT_EQ(le16, htole16(le16)); in TEST() 76 ASSERT_EQ(le16, be16toh(be16)); in TEST() 82 ASSERT_EQ(le16, le16toh(le16)); in TEST() 89 ASSERT_EQ(le16, betoh16(be16)); in TEST() 99 ASSERT_EQ(le16, letoh16(le16)); in TEST()
|
D | byteswap_test.cpp | 21 static constexpr uint16_t le16 = 0x1234; variable 30 EXPECT_EQ(le16, bswap_16(be16)); in TEST() 31 EXPECT_EQ(be16, bswap_16(le16)); in TEST()
|
D | netinet_in_test.cpp | 25 static constexpr uint16_t le16 = 0x1234; variable 49 ASSERT_EQ(be16, (htons)(le16)); in TEST() 65 ASSERT_EQ(le16, (ntohs)(be16)); in TEST()
|