MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / bit_equal

Function bit_equal

test/half.cpp:35–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34template <class T, class U>
35static bool bit_equal(const T& x, const U& y)
36{
37 static_assert(sizeof(T) == sizeof(U));
38 using type = std::array<char, sizeof(T)>;
39 return migraphx::bit_cast<type>(x) == migraphx::bit_cast<type>(y);
40}
41
42TEST_CASE(check_numeric_limits)
43{

Callers 1

TEST_CASEFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected