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

Function EncodeViaFloatProxy

test/hex_float_test.cpp:452–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450// Converts a float value to a string via a FloatProxy.
451template <typename T>
452std::string EncodeViaFloatProxy(const T& value) {
453 std::stringstream ss;
454 ss << value;
455 return ss.str();
456}
457
458// Converts a floating point string so that the exponent prefix
459// is 'e', and the exponent value does not have leading zeros.

Callers 1

TEST_PFunction · 0.85

Calls 1

strMethod · 0.45

Tested by

no test coverage detected