/third_party/openssl/test/ |
H A D | endecoder_legacy_test.c | 74 const char *structure[2]; member 305 const char *structure) in test_protected_PEM() 323 "PEM", structure, in test_protected_PEM() 337 "PEM", structure, in test_protected_PEM() 373 const char *structure) in test_unprotected_PEM() 391 "PEM", structure, in test_unprotected_PEM() 404 "PEM", structure, in test_unprotected_PEM() 438 const char *structure) in test_DER() 456 "DER", structure, in test_DER() 471 "DER", structure, in test_DER() 298 test_protected_PEM(const char *keytype, int evp_type, const void *legacy_key, PEM_write_bio_of_void_protected *pem_write_bio, PEM_read_bio_of_void *pem_read_bio, EVP_PKEY_eq_fn *evp_pkey_eq, EVP_PKEY_print_fn *evp_pkey_print, EVP_PKEY *provided_pkey, int selection, const char *structure) test_protected_PEM() argument 366 test_unprotected_PEM(const char *keytype, int evp_type, const void *legacy_key, PEM_write_bio_of_void_unprotected *pem_write_bio, PEM_read_bio_of_void *pem_read_bio, EVP_PKEY_eq_fn *evp_pkey_eq, EVP_PKEY_print_fn *evp_pkey_print, EVP_PKEY *provided_pkey, int selection, const char *structure) test_unprotected_PEM() argument 433 test_DER(const char *keytype, int evp_type, const void *legacy_key, i2d_of_void *i2d, d2i_of_void *d2i, EVP_PKEY_eq_fn *evp_pkey_eq, EVP_PKEY_print_fn *evp_pkey_print, EVP_PKEY *provided_pkey, int selection, const char *structure) test_DER() argument 533 const char *structure = test_stanza->structure[i]; test_key() local 553 const char *structure = test_stanza->structure[i]; test_key() local 571 const char *structure = test_stanza->structure[i]; test_key() local 590 const char *structure = "SubjectPublicKeyInfo"; test_key() local 608 const char *structure = test_stanza->structure[i]; test_key() local 628 const char *structure = test_stanza->structure[i]; test_key() local 646 const char *structure = test_stanza->structure[i]; test_key() local 663 const char *structure = "SubjectPublicKeyInfo"; test_key() local [all...] |
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/ |
H A D | RewriteStructSamplers.cpp | 21 // Used to map one structure type to another (one where the samplers are removed). 24 // The structure this was replaced with. If nullptr, it means the structure is removed (because 27 // Indexed by the field index of original structure, to get the field index of the modified 28 // structure. For example: 78 const TStructure *structure = node->getLeft()->getType().getStruct(); in RewriteExpressionVisitBinaryHelper() local 79 ASSERT(structure); in RewriteExpressionVisitBinaryHelper() 83 if (!node->getType().isSampler() && structureMap.find(structure) == structureMap.end()) in RewriteExpressionVisitBinaryHelper() 93 ASSERT(structureMap.find(structure) != structureMap.end()); in RewriteExpressionVisitBinaryHelper() 285 const TStructure *structure in RewriteModifiedStructFieldSelectionExpression() local 363 const TStructure *structure = type.getStruct(); global() local 370 const TStructure *structure = type.getStruct(); global() local 419 stripStructSpecifierSamplers(const TStructure *structure, TIntermSequence *newSequence) stripStructSpecifierSamplers() argument 496 const TStructure *structure = type.getStruct(); isRemovedStructType() local 510 extractStructSamplerUniforms(const TVariable &variable, const TStructure *structure, TIntermSequence *newSequence) extractStructSamplerUniforms() argument 572 const TStructure *structure = fieldType.getStruct(); extractFieldSamplers() local [all...] |
H A D | SeparateDeclarations.cpp | 102 const TStructure *structure = declaratorType.getStruct(); in separateDeclarator() local 104 if (!isStructSpecifier || (index == 0 && structure->symbolType() != SymbolType::Empty)) in separateDeclarator() 118 if (structure->symbolType() == SymbolType::Empty) in separateDeclarator() 123 new TStructure(mSymbolTable, kEmptyImmutableString, &structure->fields(), in separateDeclarator() 125 newStructure->setAtGlobalScope(structure->atGlobalScope()); in separateDeclarator() 126 *replacementStructure = structure = newStructure; in separateDeclarator() 128 TType *namedType = new TType(structure, true); in separateDeclarator() 141 structure = *replacementStructure; in separateDeclarator() 172 TType *newType = new TType(structure, false); in separateDeclarator()
|
H A D | SeparateStructFromUniformDeclarations.cpp | 62 const TStructure *structure = oldType.getStruct(); in doReplacement() local 63 if (structure->symbolType() == SymbolType::Empty) in doReplacement() 66 structure = new TStructure(mSymbolTable, kEmptyImmutableString, &structure->fields(), in doReplacement() 69 TType *namedType = new TType(structure, true); in doReplacement() 86 TType *uniformType = new TType(structure, false); in doReplacement()
|
H A D | RemoveUnreferencedVariables.cpp | 41 // return values and from interface block and structure fields. We need to track both function 71 const auto *structure = type.getStruct(); in incrementStructTypeRefCount() local 72 if (structure != nullptr) in incrementStructTypeRefCount() 74 auto structIter = mStructIdRefCounts.find(structure->uniqueId().get()); in incrementStructTypeRefCount() 77 mStructIdRefCounts[structure->uniqueId().get()] = 1u; in incrementStructTypeRefCount() 79 for (const auto &field : structure->fields()) in incrementStructTypeRefCount() 159 auto *structure = type.getStruct(); in decrementStructTypeRefCount() local 160 if (structure != nullptr) in decrementStructTypeRefCount() 162 ASSERT(mStructIdRefCounts->find(structure->uniqueId().get()) != mStructIdRefCounts->end()); in decrementStructTypeRefCount() 163 unsigned int structRefCount = --(*mStructIdRefCounts)[structure in decrementStructTypeRefCount() [all...] |
/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
H A D | StructureHLSL.cpp | 23 TString Define(const TStructure &structure, in Define() argument 29 const TFieldList &fields = structure.fields(); in Define() 30 const bool isNameless = (structure.symbolType() == SymbolType::Empty); in Define() 31 const TString &structName = QualifiedStructNameString(structure, useHLSLRowMajorPacking, in Define() 59 string += " " + fieldTypeString + " " + DecorateField(field->name(), structure) + in Define() 134 // Add padding between the structure's members to follow the std140 rules manually. in prePadding() 154 // Add padding between the structure's members to follow the std140 rules manually. in prePadding() 171 // Add padding between the structure's members to follow the std140 rules manually. in prePadding() 221 // If this structure will be used as HLSL StructuredBuffer member's type, in in postPaddingString() 222 // order to follow the std140 rules, add padding at the end of the structure in postPaddingString() 241 const TStructure *structure = type.getStruct(); postPaddingString() local 288 defineQualified(const TStructure &structure, bool useHLSLRowMajorPacking, bool useStd140Packing, bool forcePadding) defineQualified() argument 305 defineNameless(const TStructure &structure) defineNameless() argument 310 defineVariants(const TStructure &structure, const TString &name) defineVariants() argument 360 ensureStructDefined(const TStructure &structure) ensureStructDefined() argument 373 addStructConstructor(const TStructure &structure) addStructConstructor() argument [all...] |
H A D | StructureHLSL.h | 24 // This helper class assists structure and interface block definitions in determining 56 TString addStructConstructor(const TStructure &structure); 59 static TString defineNameless(const TStructure &structure); 60 void ensureStructDefined(const TStructure &structure); 93 void storeStd140ElementIndex(const TStructure &structure, bool useHLSLRowMajorPacking); 94 TString defineQualified(const TStructure &structure, 98 DefinedStructs::iterator defineVariants(const TStructure &structure, const TString &name);
|
H A D | UtilsHLSL.cpp | 827 TString DecorateField(const ImmutableString &string, const TStructure &structure) in DecorateField() argument 829 if (structure.symbolType() != SymbolType::BuiltIn) in DecorateField() 895 const TStructure *structure = type.getStruct(); in TypeString() local 896 if (structure) in TypeString() 898 if (structure->symbolType() != SymbolType::Empty) in TypeString() 900 return StructNameString(*structure); in TypeString() 902 else // Nameless structure, define in place in TypeString() 904 return StructureHLSL::defineNameless(*structure); in TypeString() 994 TString StructNameString(const TStructure &structure) in StructNameString() argument 996 if (structure in StructNameString() 1011 QualifiedStructNameString(const TStructure &structure, bool useHLSLRowMajorPacking, bool useStd140Packing, bool forcePadding) QualifiedStructNameString() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/ |
H A D | Types.h | 247 structure(0), mangled(0) in TType() 254 structure(0), mangled(0) in TType() 261 structure(userDef), mangled(0) in TType() 269 interfaceBlock(interfaceBlockIn), layoutQualifier(layoutQualifierIn), structure(0), mangled(0) in TType() 291 // If the structure's matrix packing is specified, it overrules the block's matrix packing in setMatrixPackingIfUnspecified() 292 structure->setMatrixPackingIfUnspecified((layoutQualifier.matrixPacking == EmpUnspecified) ? in setMatrixPackingIfUnspecified() 340 if(structure) in samplerRegisterCount() 344 const TFieldList& fields = isInterfaceBlock() ? interfaceBlock->fields() : structure->fields(); in samplerRegisterCount() 358 if(structure || isInterfaceBlock()) in elementRegisterCount() 362 const TFieldList& fields = isInterfaceBlock() ? interfaceBlock->fields() : structure in elementRegisterCount() 548 TStructure *structure = nullptr; // null unless this is a struct global() member in TType [all...] |
/third_party/mesa3d/src/compiler/glsl/ |
H A D | lower_named_interface_blocks.cpp | 78 element_type->fields.structure[idx].type, type->length); in process_array_type() 156 const char * field_name = iface_t->fields.structure[i].name; in run() 168 ralloc_strdup(mem_ctx, iface_t->fields.structure[i].name); in run() 171 new(mem_ctx) ir_variable(iface_t->fields.structure[i].type, in run() 182 new_var->data.location = iface_t->fields.structure[i].location; in run() 184 iface_t->fields.structure[i].component >= 0 ? in run() 185 iface_t->fields.structure[i].component : 0; in run() 188 (iface_t->fields.structure[i].component >= 0); in run() 189 new_var->data.offset = iface_t->fields.structure[i].offset; in run() 191 (iface_t->fields.structure[ in run() [all...] |
H A D | link_interface_blocks.cpp | 51 if (c->fields.structure[i].type != p->fields.structure[i].type) in interstage_member_mismatch() 53 if (strcmp(c->fields.structure[i].name, in interstage_member_mismatch() 54 p->fields.structure[i].name) != 0) in interstage_member_mismatch() 56 if (c->fields.structure[i].location != in interstage_member_mismatch() 57 p->fields.structure[i].location) in interstage_member_mismatch() 59 if (c->fields.structure[i].component != in interstage_member_mismatch() 60 p->fields.structure[i].component) in interstage_member_mismatch() 62 if (c->fields.structure[i].patch != in interstage_member_mismatch() 63 p->fields.structure[ in interstage_member_mismatch() [all...] |
H A D | opt_structure_splitting.cpp | 27 * If a structure is only ever referenced by its components, then 156 /* If there are no structure references yet, no need to bother with in visit_enter() 164 /* We'll split copies of a structure to copies of components, so don't in visit_enter() 175 /* We don't have logic for structure-splitting function arguments, in visit_enter() 276 type->fields.structure[i].name); in visit_leave() 284 type->fields.structure[i].name); in visit_leave() 310 printf("structure %s@%p: decl %d, whole_access %d\n", in do_structure_splitting() 337 type->fields.structure[i].name); in do_structure_splitting() 339 new(entry->mem_ctx) ir_variable(type->fields.structure[i].type, in do_structure_splitting() 343 if (type->fields.structure[ in do_structure_splitting() [all...] |
H A D | link_uniforms.cpp | 99 fields.structure[t_without_array->field_index(var->name)] : NULL; in process() 138 const char *field = t->fields.structure[i].name; in recursion() 141 if (t->is_interface() && t->fields.structure[i].offset != -1) in recursion() 142 this->set_buffer_offset(t->fields.structure[i].offset); in recursion() 159 glsl_matrix_layout(t->fields.structure[i].matrix_layout); in recursion() 166 recursion(t->fields.structure[i].type, name, new_length, in recursion()
|
/third_party/mesa3d/src/compiler/ |
H A D | glsl_types.cpp | 127 this->fields.structure = rzalloc_array(this->mem_ctx, in glsl_type() 131 this->fields.structure[i] = fields[i]; in glsl_type() 132 this->fields.structure[i].name = ralloc_strdup(this->fields.structure, in glsl_type() 155 this->fields.structure = rzalloc_array(this->mem_ctx, in glsl_type() 158 this->fields.structure[i] = fields[i]; in glsl_type() 159 this->fields.structure[i].name = ralloc_strdup(this->fields.structure, in glsl_type() 223 if (this->fields.structure[i].type->contains_sampler()) in contains_sampler() 237 if (this->fields.structure[ in contains_array() [all...] |
/third_party/glslang/glslang/Include/ |
H A D | Types.h | 90 // Some languages support structures as sample results. Storing the whole structure in the 1542 arraySizes(nullptr), structure(nullptr), fieldName(nullptr), typeName(nullptr), typeParameters(nullptr), in TType() 1558 arraySizes(nullptr), structure(nullptr), fieldName(nullptr), typeName(nullptr), typeParameters(nullptr), in TType() 1576 arraySizes(p.arraySizes), structure(nullptr), fieldName(nullptr), typeName(nullptr), typeParameters(p.typeParameters), in TType() 1589 structure = p.userDef->getWritableStruct(); // public type is short-lived; there are no sharing issues in TType() 1627 arraySizes(as), structure(nullptr), fieldName(nullptr), typeName(nullptr), in TType() 1634 // without ever duplicating the outer structure that will be thrown away 1648 // do a structure dereference in TType() 1681 arraySizes(nullptr), structure(userDef), fieldName(nullptr), typeParameters(nullptr), in TType() 1691 qualifier(q), arraySizes(nullptr), structure(userDe in TType() [all...] |
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/ |
H A D | ToposortStructs.cpp | 208 const TStructure *structure; member 226 if (const TStructure *structure = symbolEnv.remap(type.getStruct())) in GetAsDeclaredStructure() 231 out.structure = structure; in GetAsDeclaredStructure() 233 usedStructs.find(structure) == usedStructs.end() in GetAsDeclaredStructure() 235 : CreateStructEqualityFunction(symbolTable, *structure); in GetAsDeclaredStructure() 266 if (const TStructure *structure = mSymbolEnv.remap(leftType.getStruct())) 268 useStruct(*structure); variable 281 void useStruct(const TStructure &structure) in useStruct() argument 283 if (mUsedStructs.insert(&structure) in useStruct() [all...] |
H A D | AstHelpers.cpp | 40 const TStructure &structure) in CreateStructTypeVariable() 42 TType *type = new TType(&structure, true); in CreateStructTypeVariable() 48 const TStructure &structure, in CreateInstanceVariable() 53 TType *type = new TType(&structure, false); in CreateInstanceVariable() 197 int sh::GetFieldIndex(const TStructure &structure, const ImmutableString &fieldName) 199 const TFieldList &fieldList = structure.fields(); 221 const TStructure *structure = object.getType().getStruct(); 222 ASSERT(structure); 224 const int index = GetFieldIndex(*structure, fieldName); 234 const TStructure *structure 39 CreateStructTypeVariable(TSymbolTable &symbolTable, const TStructure &structure) CreateStructTypeVariable() argument 47 CreateInstanceVariable(TSymbolTable &symbolTable, const TStructure &structure, const Name &name, TQualifier qualifier, const TSpan<const unsigned int> *arraySizes) CreateInstanceVariable() argument [all...] |
H A D | ReduceInterfaceBlocks.cpp | 50 auto &structure = variable 53 auto &structVar = CreateStructTypeVariable(mSymbolTable, structure); 56 mSymbolTable, structure, mIdGen.createNewName(interfaceBlock->name()), 69 auto &structure = variable 72 auto &structVar = CreateStructTypeVariable(mSymbolTable, structure); 74 CreateInstanceVariable(mSymbolTable, structure, Name(var),
|
H A D | NameEmbeddedUniformStructsMetal.cpp | 45 const TStructure *structure = type.getStruct(); variable 47 if (structure->symbolType() == SymbolType::Empty) 49 doReplacement(decl, declarator, structure); 70 TStructure *structure = new TStructure(mSymbolTable, kEmptyImmutableString, in doReplacement() local 72 TType *namedType = new TType(structure, true); in doReplacement() 89 TType *uniformType = new TType(structure, false); in doReplacement()
|
H A D | AstHelpers.h | 32 const TVariable &CreateStructTypeVariable(TSymbolTable &symbolTable, const TStructure &structure); 36 const TStructure &structure, 79 int GetFieldIndex(const TStructure &structure, const ImmutableString &fieldName); 137 // Returns true iff the structure directly contains a field with matrix type. 138 bool HasMatrixField(const TStructure &structure); 140 // Returns true iff the structure directly contains a field with array type. 141 bool HasArrayField(const TStructure &structure);
|
H A D | SeparateCompoundStructDeclarations.cpp | 39 const TStructure *structure = type.getStruct(); variable 43 if (structure->symbolType() == SymbolType::Empty) 47 &structure->fields(), SymbolType::AngleInternal); 55 new TType(structure, true), SymbolType::Empty); 56 instanceType = new TType(structure, false);
|
/third_party/ffmpeg/libavcodec/ |
H A D | cbs_internal.h | 34 // Unit content is a simple structure. 38 // structure offsets of every buffer reference. 73 // The size of the structure which should be allocated to contain 80 // The structure must contain two adjacent elements: 185 #define CBS_UNIT_TYPE_POD(type, structure) { \ 189 .content_size = sizeof(structure), \ 191 #define CBS_UNIT_TYPE_INTERNAL_REF(type, structure, ref_field) { \ 195 .content_size = sizeof(structure), \ 197 .ref_offsets = { offsetof(structure, ref_field) }, \ 199 #define CBS_UNIT_TYPE_COMPLEX(type, structure, free_fun [all...] |
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/apple/ |
H A D | RewriteRowMajorMatrices.cpp | 450 const TStructure *structure = type.getStruct(); variable 451 ASSERT(structure); variable 453 ASSERT(mOuterPass.structMap.count(structure) == 0); 456 mOuterPass.structMap[structure] = structData; 694 void convertStruct(const TStructure *structure, TIntermSequence *newDeclarations) in convertStruct() argument 698 ASSERT(mOuterPass.structMap.count(structure) != 0); in convertStruct() 699 StructConversionData *structData = &mOuterPass.structMap[structure]; in convertStruct() 707 for (const TField *field : structure->fields()) in convertStruct() 861 const TStructure *structure = nullptr; in transformExpression() local 939 structure in transformExpression() 1157 transformReadExpression(TIntermTyped *baseExpression, TIntermNode *primaryIndex, TIntermSequence *secondaryIndices, const TStructure *structure, TIntermSequence *prependStatements) transformReadExpression() argument 1256 transformWriteExpression(TIntermTyped *baseExpression, TIntermNode *primaryIndex, TIntermSequence *secondaryIndices, const TStructure *structure, TIntermTyped *valueExpression, TOperator assignmentOperator, TIntermSequence *writeStatements) transformWriteExpression() argument 1515 declareStructCopyFromOriginal(const TStructure *structure) declareStructCopyFromOriginal() argument 1527 declareStructCopyToOriginal(const TStructure *structure) declareStructCopyToOriginal() argument [all...] |
/third_party/skia/third_party/externals/tint/src/ast/ |
H A D | member_accessor_expression.cc | 29 : Base(pid, src), structure(str), member(mem) { in MemberAccessorExpression() 30 TINT_ASSERT(AST, structure); in MemberAccessorExpression() 31 TINT_ASSERT_PROGRAM_IDS_EQUAL_IF_VALID(AST, structure, program_id); in MemberAccessorExpression() 45 auto* str = ctx->Clone(structure); in Clone()
|
/third_party/skia/third_party/externals/tint/src/reader/wgsl/ |
H A D | parser_impl_assignment_stmt_test.cc | 66 ASSERT_TRUE(mem->structure->Is<ast::IndexAccessorExpression>()); in TEST_F() 67 auto* idx = mem->structure->As<ast::IndexAccessorExpression>(); in TEST_F() 79 ASSERT_TRUE(mem->structure->Is<ast::MemberAccessorExpression>()); in TEST_F() 80 mem = mem->structure->As<ast::MemberAccessorExpression>(); in TEST_F() 82 ASSERT_TRUE(mem->structure->Is<ast::IdentifierExpression>()); in TEST_F() 83 ident = mem->structure->As<ast::IdentifierExpression>(); in TEST_F()
|