Home
last modified time | relevance | path

Searched refs:MakeFloat (Results 1 – 8 of 8) sorted by relevance

/third_party/skia/third_party/externals/tint/src/writer/wgsl/
Dgenerator_impl_literal_test.cc29 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/
Dfloat_to_string_test.cc31 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/
Dparser_impl_const_literal_test.cc29 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/
DSkSLLiteral.h31 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()
DSkSLFunctionCall.cpp710 return Literal::MakeFloat(arguments[0]->fLine, determinant, &returnType); in optimize_intrinsic_call()
/third_party/skia/src/sksl/dsl/
DDSLExpression.cpp45 : fExpression(SkSL::Literal::MakeFloat(ThreadContext::Context(), in DSLExpression()
/third_party/skia/src/sksl/
DSkSLRehydrator.cpp479 return Literal::MakeFloat(/*line=*/-1, value, type); in expression()
/third_party/skia/src/sksl/codegen/
DSkSLSPIRVCodeGenerator.cpp1167 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()