| 1096 | }; |
| 1097 | |
| 1098 | std::string get_round_text(round_direction direction) { |
| 1099 | #define CASE(round_direction) \ |
| 1100 | case round_direction: \ |
| 1101 | return #round_direction |
| 1102 | |
| 1103 | switch (direction) { |
| 1104 | CASE(round_direction::kToZero); |
| 1105 | CASE(round_direction::kToPositiveInfinity); |
| 1106 | CASE(round_direction::kToNegativeInfinity); |
| 1107 | CASE(round_direction::kToNearestEven); |
| 1108 | } |
| 1109 | #undef CASE |
| 1110 | return ""; |
| 1111 | } |
| 1112 | |
| 1113 | using HexFloatFP32To16Tests = ::testing::TestWithParam<DownCastTest>; |
| 1114 |