MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / get_round_text

Function get_round_text

test/hex_float_test.cpp:1098–1111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1096};
1097
1098std::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
1113using HexFloatFP32To16Tests = ::testing::TestWithParam<DownCastTest>;
1114

Callers 1

TEST_PFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected