| 846 | }; |
| 847 | |
| 848 | std::string get_round_text(spvutils::round_direction direction) { |
| 849 | #define CASE(round_direction) \ |
| 850 | case round_direction: \ |
| 851 | return #round_direction |
| 852 | |
| 853 | switch (direction) { |
| 854 | CASE(spvutils::kRoundToZero); |
| 855 | CASE(spvutils::kRoundToPositiveInfinity); |
| 856 | CASE(spvutils::kRoundToNegativeInfinity); |
| 857 | CASE(spvutils::kRoundToNearestEven); |
| 858 | } |
| 859 | #undef CASE |
| 860 | return ""; |
| 861 | } |
| 862 | |
| 863 | using HexFloatFP32To16Tests = ::testing::TestWithParam<DownCastTest>; |
| 864 |