Home
last modified time | relevance | path

Searched refs:AsNumber (Results 1 – 12 of 12) sorted by relevance

/third_party/vk-gl-cts/external/amber/src/src/
Dformat.h134 if (type_->IsNumber() && IsNormalized(type_->AsNumber()->GetFormatMode())) in IsNormalized()
156 type::Type::IsInt8(type_->AsNumber()->GetFormatMode(), in IsInt8()
157 type_->AsNumber()->NumBits()); in IsInt8()
162 type::Type::IsInt16(type_->AsNumber()->GetFormatMode(), in IsInt16()
163 type_->AsNumber()->NumBits()); in IsInt16()
168 type::Type::IsInt32(type_->AsNumber()->GetFormatMode(), in IsInt32()
169 type_->AsNumber()->NumBits()); in IsInt32()
174 type::Type::IsInt64(type_->AsNumber()->GetFormatMode(), in IsInt64()
175 type_->AsNumber()->NumBits()); in IsInt64()
180 type::Type::IsUint8(type_->AsNumber()->GetFormatMode(), in IsUint8()
[all …]
Dformat.cc167 align = CalcMatrixBaseAlignmentInBytes(t->AsNumber()); in CalcArrayBaseAlignmentInBytes()
169 align = CalcVecBaseAlignmentInBytes(t->AsNumber()); in CalcArrayBaseAlignmentInBytes()
218 return CalcVecBaseAlignmentInBytes(t->AsNumber()); in CalcTypeBaseAlignmentInBytes()
220 return CalcMatrixBaseAlignmentInBytes(t->AsNumber()); in CalcTypeBaseAlignmentInBytes()
338 auto n = type->AsNumber(); in AddSegmentsForType()
406 name += "_" + FormatModeToName(type_->AsNumber()->GetFormatMode()); in GenerateName()
Dtype.cc33 Number* Type::AsNumber() { in AsNumber() function in amber::type::Type
45 const Number* Type::AsNumber() const { in AsNumber() function in amber::type::Type
Dtype.h103 Number* AsNumber();
107 const Number* AsNumber() const;
160 auto n = b->AsNumber(); in Equal()
/third_party/vk-gl-cts/external/amber/src/src/amberscript/
Dparser_struct_test.cc53 EXPECT_TRUE(type::Type::IsUint8(m[0].type->AsNumber()->GetFormatMode(), in TEST_F()
54 m[0].type->AsNumber()->NumBits())); in TEST_F()
55 EXPECT_TRUE(type::Type::IsUint32(m[1].type->AsNumber()->GetFormatMode(), in TEST_F()
56 m[1].type->AsNumber()->NumBits())); in TEST_F()
60 EXPECT_TRUE(type::Type::IsFloat32(m[2].type->AsNumber()->GetFormatMode(), in TEST_F()
61 m[2].type->AsNumber()->NumBits())); in TEST_F()
66 EXPECT_TRUE(type::Type::IsFloat32(m[3].type->AsNumber()->GetFormatMode(), in TEST_F()
67 m[3].type->AsNumber()->NumBits())); in TEST_F()
Dparser.cc747 auto num = type->AsNumber(); in ParseShaderSpecialization()
2458 auto n = type->AsNumber(); in ParseBufferInitializerSeries()
/third_party/node/deps/v8/src/ast/
Dast.cc682 FixedDoubleArray::cast(*elements).set(array_index, literal->AsNumber()); in BuildBoilerplateDescription()
1009 return DoubleToUint32IfEqualToSelf(AsNumber(), value); in ToUint32()
1088 : ComputeLongHash(base::double_to_uint64(AsNumber())); in Hash()
1102 (x->IsNumber() && y->IsNumber() && x->AsNumber() == y->AsNumber()); in Match()
Dprettyprinter.cc681 Print("%g", literal->AsNumber()); in PrintLiteral()
Dast.h960 double AsNumber() const { in AsNumber() function
/third_party/vk-gl-cts/external/amber/src/src/vkscript/
Dcommand_parser_test.cc3091 auto n = fmt->GetType()->AsNumber(); in TEST_F()
3138 auto n = fmt->GetType()->AsNumber(); in TEST_F()
3174 auto n = fmt->GetType()->AsNumber(); in TEST_F()
3210 auto n = fmt->GetType()->AsNumber(); in TEST_F()
3345 auto n = fmt->GetType()->AsNumber(); in TEST_F()
3389 auto n = fmt->GetType()->AsNumber(); in TEST_F()
3469 auto n = fmt->GetType()->AsNumber(); in TEST_F()
3527 auto n = fmt->GetType()->AsNumber(); in TEST_F()
3948 auto n = fmt->GetType()->AsNumber(); in TEST_F()
3986 auto n = fmt->GetType()->AsNumber(); in TEST_F()
[all …]
/third_party/node/deps/v8/src/parsing/
Dparser.cc158 double x_val = (*x)->AsLiteral()->AsNumber(); in ShortcutNumericLiteralBinaryExpression()
159 double y_val = y->AsLiteral()->AsNumber(); in ShortcutNumericLiteralBinaryExpression()
270 double value = literal->AsNumber(); in BuildUnaryExpression()
/third_party/node/deps/v8/src/interpreter/
Dbytecode-generator.cc1811 expr->AsLiteral()->AsNumber() == 0.0)) { in IsSmiLiteralSwitchCaseValue()
1815 DCHECK(!IsSmiDouble(expr->AsLiteral()->AsNumber())); in IsSmiLiteralSwitchCaseValue()
1828 expr->AsLiteral()->AsNumber() == -0.0); in ReduceToSmiSwitchCaseValue()
2993 builder()->LoadLiteral(expr->AsNumber()); in VisitLiteral()