/external/deqp-deps/SPIRV-Tools/test/ |
D | hex_float_test.cpp | 39 ::testing::TestWithParam<std::pair<FloatProxy<float>, std::string>>; 41 ::testing::TestWithParam<std::pair<std::string, FloatProxy<float>>>; 43 ::testing::TestWithParam<std::pair<FloatProxy<double>, std::string>>; 45 ::testing::TestWithParam<std::pair<std::string, FloatProxy<double>>>; 70 FloatProxy<T> Decode(const std::string& str) { in Decode() 71 HexFloat<FloatProxy<T>> decoded(0.f); in Decode() 86 ::testing::ValuesIn(std::vector<std::pair<FloatProxy<float>, std::string>>({ 138 ::testing::ValuesIn(std::vector<std::pair<FloatProxy<float>, std::string>>({ 157 std::vector<std::pair<FloatProxy<double>, std::string>>({ 230 std::pair<FloatProxy<double>, std::string>>({ [all …]
|
D | parse_number_test.cpp | 192 HexFloat<FloatProxy<float>> f(0.0f); in TEST() 237 HexFloat<FloatProxy<double>> f(0.0); in TEST() 257 HexFloat<FloatProxy<Float16>> f(0); in TEST()
|
/external/swiftshader/third_party/SPIRV-Tools/test/ |
D | hex_float_test.cpp | 39 ::testing::TestWithParam<std::pair<FloatProxy<float>, std::string>>; 41 ::testing::TestWithParam<std::pair<std::string, FloatProxy<float>>>; 43 ::testing::TestWithParam<std::pair<FloatProxy<double>, std::string>>; 45 ::testing::TestWithParam<std::pair<std::string, FloatProxy<double>>>; 70 FloatProxy<T> Decode(const std::string& str) { in Decode() 71 HexFloat<FloatProxy<T>> decoded(0.f); in Decode() 86 ::testing::ValuesIn(std::vector<std::pair<FloatProxy<float>, std::string>>({ 138 ::testing::ValuesIn(std::vector<std::pair<FloatProxy<float>, std::string>>({ 157 std::vector<std::pair<FloatProxy<double>, std::string>>({ 230 std::pair<FloatProxy<double>, std::string>>({ [all …]
|
D | parse_number_test.cpp | 192 HexFloat<FloatProxy<float>> f(0.0f); in TEST() 237 HexFloat<FloatProxy<double>> f(0.0); in TEST() 257 HexFloat<FloatProxy<Float16>> f(0); in TEST()
|
/external/deqp-deps/glslang/gtests/ |
D | HexFloat.cpp | 29 using spvutils::FloatProxy; 37 ::testing::TestWithParam<std::pair<FloatProxy<float>, std::string>>; 39 ::testing::TestWithParam<std::pair<std::string, FloatProxy<float>>>; 41 ::testing::TestWithParam<std::pair<FloatProxy<double>, std::string>>; 43 ::testing::TestWithParam<std::pair<std::string, FloatProxy<double>>>; 66 FloatProxy<T> Decode(const std::string& str) { in Decode() 67 spvutils::HexFloat<FloatProxy<T>> decoded(0.f); in Decode() 82 ::testing::ValuesIn(std::vector<std::pair<FloatProxy<float>, std::string>>({ 134 ::testing::ValuesIn(std::vector<std::pair<FloatProxy<float>, std::string>>({ 153 std::vector<std::pair<FloatProxy<double>, std::string>>({ [all …]
|
/external/deqp-deps/glslang/SPIRV/ |
D | hex_float.h | 115 class FloatProxy { 121 FloatProxy() {} 125 FloatProxy(T val) { data_ = BitwiseCast<uint_type>(val); } 129 FloatProxy(uint_type val) { data_ = val; } 132 FloatProxy<T> operator-() const { 149 static FloatProxy<T> max() { 150 return FloatProxy<T>(FloatProxyTraits<T>::max()); 153 static FloatProxy<T> lowest() { 154 return FloatProxy<T>(FloatProxyTraits<T>::lowest()); 162 bool operator==(const FloatProxy<T>& first, const FloatProxy<T>& second) { [all …]
|
D | SpvBuilder.cpp | 942 spvutils::HexFloat<spvutils::FloatProxy<float>> fVal(f16); in makeFloat16Constant() 943 spvutils::HexFloat<spvutils::FloatProxy<spvutils::Float16>> f16Val(0); in makeFloat16Constant()
|
/external/deqp-deps/SPIRV-Tools/source/util/ |
D | hex_float.h | 135 class FloatProxy { 141 FloatProxy() = default; 145 FloatProxy(T val) { data_ = FloatProxyTraits<T>::getBitsFromFloat(val); } 149 FloatProxy(uint_type val) { data_ = val; } 152 FloatProxy<T> operator-() const { 182 static FloatProxy<T> max() { 183 return FloatProxy<T>(FloatProxyTraits<T>::max()); 186 static FloatProxy<T> lowest() { 187 return FloatProxy<T>(FloatProxyTraits<T>::lowest()); 195 bool operator==(const FloatProxy<T>& first, const FloatProxy<T>& second) { [all …]
|
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()
|
/external/swiftshader/third_party/SPIRV-Tools/source/util/ |
D | hex_float.h | 135 class FloatProxy { 141 FloatProxy() = default; 145 FloatProxy(T val) { data_ = FloatProxyTraits<T>::getBitsFromFloat(val); } 149 FloatProxy(uint_type val) { data_ = val; } 152 FloatProxy<T> operator-() const { 182 static FloatProxy<T> max() { 183 return FloatProxy<T>(FloatProxyTraits<T>::max()); 186 static FloatProxy<T> lowest() { 187 return FloatProxy<T>(FloatProxyTraits<T>::lowest()); 195 bool operator==(const FloatProxy<T>& first, const FloatProxy<T>& second) { [all …]
|
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()
|
/external/swiftshader/third_party/SPIRV-Tools/source/ |
D | parsed_operand.cpp | 44 *out << spvtools::utils::FloatProxy<spvtools::utils::Float16>( in EmitNumericLiteral() 48 *out << spvtools::utils::FloatProxy<float>(word); in EmitNumericLiteral() 67 *out << spvtools::utils::FloatProxy<double>(bits); in EmitNumericLiteral()
|
/external/deqp-deps/SPIRV-Tools/source/ |
D | parsed_operand.cpp | 44 *out << spvtools::utils::FloatProxy<spvtools::utils::Float16>( in EmitNumericLiteral() 48 *out << spvtools::utils::FloatProxy<float>(word); in EmitNumericLiteral() 67 *out << spvtools::utils::FloatProxy<double>(bits); in EmitNumericLiteral()
|
/external/deqp-deps/SPIRV-Tools/source/opt/ |
D | const_folding_rules.cpp | 172 utils::FloatProxy<float> result(c1_components[i]->GetFloat() * scalar); in FoldVectorTimesScalar() 182 utils::FloatProxy<double> result(c1_components[i]->GetDouble() * in FoldVectorTimesScalar() 396 utils::FloatProxy<float> result(result_val); in FoldIToFOp() 403 utils::FloatProxy<double> result(result_val); in FoldIToFOp() 425 utils::FloatProxy<float> result_in_macro(fa op fb); \ 431 utils::FloatProxy<double> result_in_macro(fa op fb); \ 559 utils::FloatProxy<float> result(0.0f); in FoldOpDotWithConstants() 564 utils::FloatProxy<double> result(0.0); in FoldOpDotWithConstants() 581 utils::FloatProxy<double> result(0.0); in FoldOpDotWithConstants() 610 utils::FloatProxy<float> result(-fa); in FoldFNegateOp() [all …]
|
D | constants.h | 240 utils::FloatProxy<float> a(words()[0]); in GetFloatValue() 252 utils::FloatProxy<double> a(combined_words); in GetDoubleValue()
|
D | folding_rules.cpp | 97 utils::FloatProxy<double> result(c->GetDouble() * -1.0); in NegateFloatingPointConstant() 100 utils::FloatProxy<float> result(c->GetFloat() * -1.0f); in NegateFloatingPointConstant() 187 spvtools::utils::FloatProxy<double> result(1.0 / c->GetDouble()); in Reciprocal() 191 spvtools::utils::FloatProxy<float> result(1.0f / c->GetFloat()); in Reciprocal() 423 utils::FloatProxy<double> val = \ in PerformFloatingPointOperation() 429 utils::FloatProxy<float> val = input1->GetFloat() op input2->GetFloat(); \ in PerformFloatingPointOperation()
|
/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | const_folding_rules.cpp | 172 utils::FloatProxy<float> result(c1_components[i]->GetFloat() * scalar); in FoldVectorTimesScalar() 182 utils::FloatProxy<double> result(c1_components[i]->GetDouble() * in FoldVectorTimesScalar() 396 utils::FloatProxy<float> result(result_val); in FoldIToFOp() 403 utils::FloatProxy<double> result(result_val); in FoldIToFOp() 425 utils::FloatProxy<float> result_in_macro(fa op fb); \ 431 utils::FloatProxy<double> result_in_macro(fa op fb); \ 559 utils::FloatProxy<float> result(0.0f); in FoldOpDotWithConstants() 564 utils::FloatProxy<double> result(0.0); in FoldOpDotWithConstants() 581 utils::FloatProxy<double> result(0.0); in FoldOpDotWithConstants() 610 utils::FloatProxy<float> result(-fa); in FoldFNegateOp() [all …]
|
D | constants.h | 240 utils::FloatProxy<float> a(words()[0]); in GetFloatValue() 252 utils::FloatProxy<double> a(combined_words); in GetDoubleValue()
|
D | folding_rules.cpp | 97 utils::FloatProxy<double> result(c->GetDouble() * -1.0); in NegateFloatingPointConstant() 100 utils::FloatProxy<float> result(c->GetFloat() * -1.0f); in NegateFloatingPointConstant() 187 spvtools::utils::FloatProxy<double> result(1.0 / c->GetDouble()); in Reciprocal() 191 spvtools::utils::FloatProxy<float> result(1.0f / c->GetFloat()); in Reciprocal() 423 utils::FloatProxy<double> val = \ in PerformFloatingPointOperation() 429 utils::FloatProxy<float> val = input1->GetFloat() op input2->GetFloat(); \ in PerformFloatingPointOperation()
|