/third_party/glslang/SPIRV/ |
H A D | hex_float.h | 170 // The numerical type that this HexFloat represents. 240 class HexFloat { class 247 explicit HexFloat(T f) : value_(f) {} in HexFloat() function in spvutils::HexFloat 370 // Sets this HexFloat from the individual components. 550 // Casts this value to another HexFloat. If the cast is widening, 653 // Outputs the given HexFloat to the stream. 655 std::ostream& operator<<(std::ostream& os, const HexFloat<T, Traits>& value) { in operator <<() argument 656 typedef HexFloat<T, Traits> HF; in operator <<() 731 HexFloat<T, Traits>& value) { in RejectParseDueToLeadingSign() 737 value = HexFloat< in RejectParseDueToLeadingSign() [all...] |
/third_party/spirv-tools/test/ |
H A D | hex_float_test.cpp | 53 ss << HexFloat<T>(value); in EncodeViaHexFloat() 71 HexFloat<FloatProxy<T>> decoded(0.f); in Decode() 440 // In previous cases, we always wrapped the FloatProxy value in a HexFloat 578 return HexFloat<FloatProxy<float>>(static_cast<float>(f)) in unbiased_exponent() 583 return HexFloat<FloatProxy<Float16>>(f).getUnbiasedNormalizedExponent(); in unbiased_half_exponent() 594 HexFloat<FloatProxy<float>>(std::numeric_limits<float>::infinity()) in TEST() 630 // Returns the normalized significand of a HexFloat<FloatProxy<float>> 635 return HexFloat<FloatProxy<float>>( in normalized_significand() 690 // on a HexFloat<FloatProxy<float>> 693 HexFloat<FloatProx in set_from_sign() [all...] |
H A D | parse_number_test.cpp | 187 // The assembler parses using HexFloat<FloatProxy<float>>. Make in TEST() 192 HexFloat<FloatProxy<float>> f(0.0f); in TEST() 232 // The assembler parses using HexFloat<FloatProxy<double>>. Make in TEST() 237 HexFloat<FloatProxy<double>> f(0.0); in TEST() 252 // The assembler parses using HexFloat<FloatProxy<Float16>>. Make in TEST() 257 HexFloat<FloatProxy<Float16>> f(0); in TEST()
|
/third_party/skia/third_party/externals/spirv-tools/test/ |
H A D | hex_float_test.cpp | 53 ss << HexFloat<T>(value); in EncodeViaHexFloat() 71 HexFloat<FloatProxy<T>> decoded(0.f); in Decode() 440 // In previous cases, we always wrapped the FloatProxy value in a HexFloat 578 return HexFloat<FloatProxy<float>>(static_cast<float>(f)) in unbiased_exponent() 583 return HexFloat<FloatProxy<Float16>>(f).getUnbiasedNormalizedExponent(); in unbiased_half_exponent() 594 HexFloat<FloatProxy<float>>(std::numeric_limits<float>::infinity()) in TEST() 630 // Returns the normalized significand of a HexFloat<FloatProxy<float>> 635 return HexFloat<FloatProxy<float>>( in normalized_significand() 690 // on a HexFloat<FloatProxy<float>> 693 HexFloat<FloatProx in set_from_sign() [all...] |
H A D | parse_number_test.cpp | 187 // The assembler parses using HexFloat<FloatProxy<float>>. Make in TEST() 192 HexFloat<FloatProxy<float>> f(0.0f); in TEST() 232 // The assembler parses using HexFloat<FloatProxy<double>>. Make in TEST() 237 HexFloat<FloatProxy<double>> f(0.0); in TEST() 252 // The assembler parses using HexFloat<FloatProxy<Float16>>. Make in TEST() 257 HexFloat<FloatProxy<Float16>> f(0); in TEST()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/ |
H A D | hex_float_test.cpp | 53 ss << HexFloat<T>(value); in EncodeViaHexFloat() 71 HexFloat<FloatProxy<T>> decoded(0.f); in Decode() 440 // In previous cases, we always wrapped the FloatProxy value in a HexFloat 578 return HexFloat<FloatProxy<float>>(static_cast<float>(f)) in unbiased_exponent() 583 return HexFloat<FloatProxy<Float16>>(f).getUnbiasedNormalizedExponent(); in unbiased_half_exponent() 594 HexFloat<FloatProxy<float>>(std::numeric_limits<float>::infinity()) in TEST() 630 // Returns the normalized significand of a HexFloat<FloatProxy<float>> 635 return HexFloat<FloatProxy<float>>( in normalized_significand() 690 // on a HexFloat<FloatProxy<float>> 693 HexFloat<FloatProx in set_from_sign() [all...] |
H A D | parse_number_test.cpp | 187 // The assembler parses using HexFloat<FloatProxy<float>>. Make in TEST() 192 HexFloat<FloatProxy<float>> f(0.0f); in TEST() 232 // The assembler parses using HexFloat<FloatProxy<double>>. Make in TEST() 237 HexFloat<FloatProxy<double>> f(0.0); in TEST() 252 // The assembler parses using HexFloat<FloatProxy<Float16>>. Make in TEST() 257 HexFloat<FloatProxy<Float16>> f(0); in TEST()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/ |
H A D | vktShaderPackingFunctionTests.cpp | 57 struct HexFloat struct 60 HexFloat (const float value_) : value(value_) {} in HexFloat() function 63 std::ostream& operator<< (std::ostream& str, const HexFloat& v) in operator <<() 311 << "vec2(" << HexFloat(ref0) << ", " << HexFloat(ref1) << ")" in iterate() 312 << ", got vec2(" << HexFloat(res0) << ", " << HexFloat(res1) << ")" in iterate() 530 << "vec2(" << HexFloat(ref0) << ", " << HexFloat(ref1) << ")" in iterate() 531 << ", got vec2(" << HexFloat(res in iterate() [all...] |
H A D | vktShaderCommonFunctionTests.cpp | 257 struct HexFloat struct 260 HexFloat (const float value_) : value(value_) {} in HexFloat() function 263 std::ostream& operator<< (std::ostream& str, const HexFloat& v) in operator <<() 316 case glu::TYPE_FLOAT: str << HexFloat(((const float*)varValue.value)[compNdx]); break; in operator <<()
|
H A D | vktShaderIntegerFunctionTests.cpp | 60 struct HexFloat struct 63 HexFloat (const float value_) : value(value_) {} in HexFloat() function 66 std::ostream& operator<< (std::ostream& str, const HexFloat& v) in operator <<() 97 case glu::TYPE_FLOAT: str << HexFloat(((const float*)varValue.value)[compNdx]); break; in operator <<()
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
H A D | es31fShaderPackingFunctionTests.cpp | 54 struct HexFloat struct 57 HexFloat (const float value_) : value(value_) {} in HexFloat() function 60 std::ostream& operator<< (std::ostream& str, const HexFloat& v) in operator <<() 289 << "vec2(" << HexFloat(ref0) << ", " << HexFloat(ref1) << ")" in iterate() 290 << ", got vec2(" << HexFloat(res0) << ", " << HexFloat(res1) << ")" in iterate() 480 << "vec2(" << HexFloat(ref0) << ", " << HexFloat(ref1) << ")" in iterate() 481 << ", got vec2(" << HexFloat(res in iterate() [all...] |
H A D | es31fShaderCommonFunctionTests.cpp | 322 struct HexFloat struct 325 HexFloat (const float value_) : value(value_) {} in HexFloat() function 328 std::ostream& operator<< (std::ostream& str, const HexFloat& v) in operator <<() 370 case glu::TYPE_FLOAT: str << HexFloat(((const float*)varValue.value)[compNdx]); break; in operator <<() 514 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref0) << " with ULP threshold " << maxUlpDiff << ", got ULP diff " << ulpDiff0; in compare() 608 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref0) << " with ULP threshold " << maxUlpDiff << ", got ULP diff " << ulpDiff0; in compare() 714 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref) << ", got ULP diff " << tcu::toHex(ulpDiff); in compare() 812 m_failMsg << "Expected [" << compNdx << "] = (" << HexFloat(refOut0) << ") + (" << HexFloat(refOut1) << ") = " << HexFloat(in in compare() [all...] |
H A D | es31fShaderIntegerFunctionTests.cpp | 58 struct HexFloat struct 61 HexFloat (const float value_) : value(value_) {} in HexFloat() function 64 std::ostream& operator<< (std::ostream& str, const HexFloat& v) in operator <<() 95 case glu::TYPE_FLOAT: str << HexFloat(((const float*)varValue.value)[compNdx]); break; in operator <<()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderexecutor/ |
H A D | vktShaderPackingFunctionTests.cpp | 57 struct HexFloat struct 60 HexFloat (const float value_) : value(value_) {} in HexFloat() function 63 std::ostream& operator<< (std::ostream& str, const HexFloat& v) in operator <<() 311 << "vec2(" << HexFloat(ref0) << ", " << HexFloat(ref1) << ")" in iterate() 312 << ", got vec2(" << HexFloat(res0) << ", " << HexFloat(res1) << ")" in iterate() 530 << "vec2(" << HexFloat(ref0) << ", " << HexFloat(ref1) << ")" in iterate() 531 << ", got vec2(" << HexFloat(res in iterate() [all...] |
H A D | vktShaderCommonFunctionTests.cpp | 257 struct HexFloat struct 260 HexFloat (const float value_) : value(value_) {} in HexFloat() function 263 std::ostream& operator<< (std::ostream& str, const HexFloat& v) in operator <<() 316 case glu::TYPE_FLOAT: str << HexFloat(((const float*)varValue.value)[compNdx]); break; in operator <<()
|
H A D | vktShaderIntegerFunctionTests.cpp | 60 struct HexFloat struct 63 HexFloat (const float value_) : value(value_) {} in HexFloat() function 66 std::ostream& operator<< (std::ostream& str, const HexFloat& v) in operator <<() 97 case glu::TYPE_FLOAT: str << HexFloat(((const float*)varValue.value)[compNdx]); break; in operator <<()
|
/third_party/glslang/gtests/ |
H A D | HexFloat.cpp | 30 using spvutils::HexFloat; 49 ss << spvutils::HexFloat<T>(value); in EncodeViaHexFloat() 67 spvutils::HexFloat<FloatProxy<T>> decoded(0.f); in Decode() 402 // In previous cases, we always wrapped the FloatProxy value in a HexFloat 540 return spvutils::HexFloat<spvutils::FloatProxy<float>>( in unbiased_exponent() 545 return spvutils::HexFloat<spvutils::FloatProxy<spvutils::Float16>>(f) in unbiased_half_exponent() 591 // Returns the normalized significand of a HexFloat<FloatProxy<float>> 595 return spvutils::HexFloat<spvutils::FloatProxy<float>>( in normalized_significand() 645 // on a HexFloat<FloatProxy<float>> 648 spvutils::HexFloat<spvutil in set_from_sign() [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/util/ |
H A D | hex_float.h | 216 // The numerical type that this HexFloat represents. 287 class HexFloat { class in spvtools::utils::round_direction 294 explicit HexFloat(T f) : value_(f) {} in HexFloat() function in spvtools::utils::round_direction::HexFloat 415 // Sets this HexFloat from the individual components. 633 // Casts this value to another HexFloat. If the cast is widening, 736 // Outputs the given HexFloat to the stream. 738 std::ostream& operator<<(std::ostream& os, const HexFloat<T, Traits>& value) { in operator <<() argument 739 using HF = HexFloat<T, Traits>; in operator <<() 814 HexFloat<T, Traits>& value) { in RejectParseDueToLeadingSign() 820 value = HexFloat< in RejectParseDueToLeadingSign() [all...] |
H A D | parse_number.cpp | 150 HexFloat<FloatProxy<Float16>> hVal(0); in ParseAndEncodeFloatingPointNumber() 163 HexFloat<FloatProxy<float>> fVal(0.0f); in ParseAndEncodeFloatingPointNumber() 172 HexFloat<FloatProxy<double>> dVal(0.0); in ParseAndEncodeFloatingPointNumber()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/util/ |
H A D | hex_float.h | 216 // The numerical type that this HexFloat represents. 287 class HexFloat { class in spvtools::utils::round_direction 294 explicit HexFloat(T f) : value_(f) {} in HexFloat() function in spvtools::utils::round_direction::HexFloat 415 // Sets this HexFloat from the individual components. 633 // Casts this value to another HexFloat. If the cast is widening, 736 // Outputs the given HexFloat to the stream. 738 std::ostream& operator<<(std::ostream& os, const HexFloat<T, Traits>& value) { in operator <<() argument 739 using HF = HexFloat<T, Traits>; in operator <<() 814 HexFloat<T, Traits>& value) { in RejectParseDueToLeadingSign() 820 value = HexFloat< in RejectParseDueToLeadingSign() [all...] |
H A D | parse_number.cpp | 150 HexFloat<FloatProxy<Float16>> hVal(0); in ParseAndEncodeFloatingPointNumber() 163 HexFloat<FloatProxy<float>> fVal(0.0f); in ParseAndEncodeFloatingPointNumber() 172 HexFloat<FloatProxy<double>> dVal(0.0); in ParseAndEncodeFloatingPointNumber()
|
/third_party/spirv-tools/source/util/ |
H A D | hex_float.h | 217 // The numerical type that this HexFloat represents. 288 class HexFloat { class in spvtools::utils::round_direction 295 explicit HexFloat(T f) : value_(f) {} in HexFloat() function in spvtools::utils::round_direction::HexFloat 416 // Sets this HexFloat from the individual components. 634 // Casts this value to another HexFloat. If the cast is widening, 737 // Outputs the given HexFloat to the stream. 739 std::ostream& operator<<(std::ostream& os, const HexFloat<T, Traits>& value) { in operator <<() argument 740 using HF = HexFloat<T, Traits>; in operator <<() 815 HexFloat<T, Traits>& value) { in RejectParseDueToLeadingSign() 821 value = HexFloat< in RejectParseDueToLeadingSign() [all...] |
H A D | parse_number.cpp | 150 HexFloat<FloatProxy<Float16>> hVal(0); in ParseAndEncodeFloatingPointNumber() 163 HexFloat<FloatProxy<float>> fVal(0.0f); in ParseAndEncodeFloatingPointNumber() 172 HexFloat<FloatProxy<double>> dVal(0.0); in ParseAndEncodeFloatingPointNumber()
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | es3fShaderPackingFunctionTests.cpp | 54 struct HexFloat struct 57 HexFloat (const float value_) : value(value_) {} in HexFloat() function 60 std::ostream& operator<< (std::ostream& str, const HexFloat& v) in operator <<() 289 << "vec2(" << HexFloat(ref0) << ", " << HexFloat(ref1) << ")" in iterate() 290 << ", got vec2(" << HexFloat(res0) << ", " << HexFloat(res1) << ")" in iterate() 480 << "vec2(" << HexFloat(ref0) << ", " << HexFloat(ref1) << ")" in iterate() 481 << ", got vec2(" << HexFloat(res in iterate() [all...] |
H A D | es3fShaderCommonFunctionTests.cpp | 247 struct HexFloat struct 250 HexFloat (const float value_) : value(value_) {} in HexFloat() function 253 std::ostream& operator<< (std::ostream& str, const HexFloat& v) in operator <<() 295 case glu::TYPE_FLOAT: str << HexFloat(((const float*)varValue.value)[compNdx]); break; in operator <<() 439 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref0) << " with ULP threshold " << maxUlpDiff << ", got ULP diff " << ulpDiff0; in compare() 533 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref0) << " with ULP threshold " << maxUlpDiff << ", got ULP diff " << ulpDiff0; in compare() 639 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref) << ", got ULP diff " << tcu::toHex(ulpDiff); in compare() 737 m_failMsg << "Expected [" << compNdx << "] = (" << HexFloat(refOut0) << ") + (" << HexFloat(refOut1) << ") = " << HexFloat(in in compare() [all...] |