MCPcopy Create free account
hub / github.com/KhronosGroup/glslang / get_round_text

Function get_round_text

gtests/HexFloat.cpp:848–861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

846};
847
848std::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
863using HexFloatFP32To16Tests = ::testing::TestWithParam<DownCastTest>;
864

Callers 1

TEST_PFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected