/third_party/skia/third_party/externals/tint/src/writer/wgsl/ |
D | generator_impl_literal_test.cc | 29 float MakeFloat(int sign, int biased_exponent, int mantissa) { in MakeFloat() function 70 {MakeFloat(0, 0, 0), "0.0"}, 71 {MakeFloat(1, 0, 0), "-0.0"}})); 84 {MakeFloat(0, 0, 1), "0x1p-149"}, // Smallest 85 {MakeFloat(1, 0, 1), "-0x1p-149"}, 86 {MakeFloat(0, 0, 2), "0x1p-148"}, 87 {MakeFloat(1, 0, 2), "-0x1p-148"}, 88 {MakeFloat(0, 0, 0x7fffff), "0x1.fffffcp-127"}, // Largest 89 {MakeFloat(1, 0, 0x7fffff), "-0x1.fffffcp-127"}, // Largest 90 {MakeFloat(0, 0, 0xcafebe), "0x1.2bfaf8p-127"}, // Scattered bits [all …]
|
/third_party/skia/third_party/externals/tint/src/writer/ |
D | float_to_string_test.cc | 31 float MakeFloat(int sign, int biased_exponent, int mantissa) { in MakeFloat() function 155 EXPECT_EQ(FloatToBitPreservingString(MakeFloat(0, 0, 0)), "0.0"); in TEST() 156 EXPECT_EQ(FloatToBitPreservingString(MakeFloat(1, 0, 0)), "-0.0"); in TEST() 160 EXPECT_EQ(FloatToBitPreservingString(MakeFloat(0, 127, 0)), "1.0"); in TEST() 161 EXPECT_EQ(FloatToBitPreservingString(MakeFloat(1, 127, 0)), "-1.0"); in TEST() 165 EXPECT_EQ(FloatToBitPreservingString(MakeFloat(0, 0, 1)), "0x1p-149"); in TEST() 166 EXPECT_EQ(FloatToBitPreservingString(MakeFloat(1, 0, 1)), "-0x1p-149"); in TEST() 170 EXPECT_EQ(FloatToBitPreservingString(MakeFloat(0, 0, 2)), "0x1p-148"); in TEST() 171 EXPECT_EQ(FloatToBitPreservingString(MakeFloat(1, 0, 2)), "-0x1p-148"); in TEST() 175 EXPECT_EQ(FloatToBitPreservingString(MakeFloat(0, 0, 0x7fffff)), in TEST() [all …]
|
/third_party/skia/third_party/externals/tint/src/reader/wgsl/ |
D | parser_impl_const_literal_test.cc | 29 float MakeFloat(int sign, int biased_exponent, int mantissa) { in MakeFloat() function 149 {"0.0", MakeFloat(0, 0, 0)}, // Zero 150 {"-0.0", MakeFloat(1, 0, 0)}, // NegativeZero 151 {"1.0", MakeFloat(0, 127, 0)}, // One 152 {"-1.0", MakeFloat(1, 127, 0)}, // NegativeOne 158 const float NegInf = MakeFloat(1, 255, 0); 159 const float PosInf = MakeFloat(0, 255, 0); 215 {"0x1p-149", MakeFloat(0, 0, 1)}, // +SmallestDenormal 216 {"0x1p-148", MakeFloat(0, 0, 2)}, // +BiggerDenormal 217 {"0x1.fffffcp-127", MakeFloat(0, 0, 0x7fffff)}, // +LargestDenormal [all …]
|
/third_party/skia/src/sksl/ir/ |
D | SkSLLiteral.h | 31 static std::unique_ptr<Literal> MakeFloat(const Context& context, int line, float value) { in MakeFloat() function 36 static std::unique_ptr<Literal> MakeFloat(int line, float value, const Type* type) { in MakeFloat() function 71 return MakeFloat(line, value, type); in Make()
|
D | SkSLFunctionCall.cpp | 710 return Literal::MakeFloat(arguments[0]->fLine, determinant, &returnType); in optimize_intrinsic_call()
|
/third_party/skia/src/sksl/dsl/ |
D | DSLExpression.cpp | 45 : fExpression(SkSL::Literal::MakeFloat(ThreadContext::Context(), in DSLExpression()
|
/third_party/skia/src/sksl/ |
D | SkSLRehydrator.cpp | 479 return Literal::MakeFloat(/*line=*/-1, value, type); in expression()
|
/third_party/skia/src/sksl/codegen/ |
D | SkSLSPIRVCodeGenerator.cpp | 1167 finalArgs.push_back(Literal::MakeFloat(fContext, /*line=*/-1, /*value=*/0)); in writeSpecialIntrinsic() 1168 finalArgs.push_back(Literal::MakeFloat(fContext, /*line=*/-1, /*value=*/1)); in writeSpecialIntrinsic()
|