Lines Matching refs:middle
31 Buffer middle = std::bit_cast<Buffer>(from); in test_roundtrip_through_buffer() local
32 T to = std::bit_cast<T>(middle); in test_roundtrip_through_buffer()
38 assert(std::memcmp(&from, &middle, sizeof(T)) == 0); in test_roundtrip_through_buffer()
39 assert(std::memcmp(&to, &middle, sizeof(T)) == 0); in test_roundtrip_through_buffer()
40 assert(std::memcmp(&middle, &middle2, sizeof(T)) == 0); in test_roundtrip_through_buffer()
49 Nested middle = std::bit_cast<Nested>(from); in test_roundtrip_through_nested_T() local
50 T to = std::bit_cast<T>(middle); in test_roundtrip_through_nested_T()
56 assert(std::memcmp(&from, &middle, sizeof(T)) == 0); in test_roundtrip_through_nested_T()
57 assert(std::memcmp(&to, &middle, sizeof(T)) == 0); in test_roundtrip_through_nested_T()
58 assert(std::memcmp(&middle, &middle2, sizeof(T)) == 0); in test_roundtrip_through_nested_T()
66 Intermediate middle = std::bit_cast<Intermediate>(from); in test_roundtrip_through() local
67 T to = std::bit_cast<T>(middle); in test_roundtrip_through()
73 assert(std::memcmp(&from, &middle, sizeof(T)) == 0); in test_roundtrip_through()
74 assert(std::memcmp(&to, &middle, sizeof(T)) == 0); in test_roundtrip_through()
75 assert(std::memcmp(&middle, &middle2, sizeof(T)) == 0); in test_roundtrip_through()
250 Nested middle = std::bit_cast<Nested>(from); in basic_constexpr_test() local
251 int to = std::bit_cast<int>(middle); in basic_constexpr_test()