| 33 | |
| 34 | template <class T, class U> |
| 35 | static 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 | |
| 42 | TEST_CASE(check_numeric_limits) |
| 43 | { |