/third_party/protobuf/src/google/protobuf/ |
H A D | generated_enum_util.cc | 49 int GetValue(const EnumEntry* enums, int i, int target) { in GetValue() argument 53 return enums[i].value; in GetValue() 59 bool LookUpEnumValue(const EnumEntry* enums, size_t size, in LookUpEnumValue() argument 62 auto it = std::lower_bound(enums, enums + size, target, EnumCompareByName); in LookUpEnumValue() 63 if (it != enums + size && it->name == name) { in LookUpEnumValue() 70 int LookUpEnumName(const EnumEntry* enums, const int* sorted_indices, in LookUpEnumName() argument 72 auto comparator = [enums, value](int a, int b) { in LookUpEnumName() 73 return GetValue(enums, a, value) < GetValue(enums, in LookUpEnumName() 83 InitializeEnumStrings( const EnumEntry* enums, const int* sorted_indices, size_t size, internal::ExplicitlyConstructed<std::string>* enum_strings) InitializeEnumStrings() argument [all...] |
H A D | generated_enum_util.h | 64 PROTOBUF_EXPORT bool LookUpEnumValue(const EnumEntry* enums, size_t size, 68 PROTOBUF_EXPORT int LookUpEnumName(const EnumEntry* enums, 74 const EnumEntry* enums, const int* sorted_indices, size_t size,
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
H A D | gen_vk_internal_shaders.py | 267 enums = [] 275 enums.append((key, value)) 280 # sort enums so the ones with the most waste ends up last, reducing the table size 281 enums.sort(key=lambda enum: (bits(enum[1]), enum[0])) 283 return (flags, enums) 286 def get_variation_bits(flags, enums): 288 enum_bits = [(len(enum[1]) - 1).bit_length() for enum in enums] 292 def next_enum_variation(enums, enum_indices): 294 where Li is len(enums[i]). The list can be thought of as a number with many 297 for i in range(len(enums)) [all...] |
/third_party/mesa3d/src/panfrost/bifrost/valhall/ |
H A D | asm.py | 27 from valhall import instructions, enums, immediates, typesize namespace 115 if op in enums[f'fau_special_page_{i}'].bare_values: 116 idx = 32 + (enums[f'fau_special_page_{i}'].bare_values.index(op) << 1) 235 elif src.halfswizzle and mod in enums[f'half_swizzles_{src.size}_bit'].bare_values: 238 val = enums[f'half_swizzles_{src.size}_bit'].bare_values.index(mod) 240 elif mod in enums[f'swizzles_{src.size}_bit'].bare_values and (src.widen or src.lanes): 243 val = enums[f'swizzles_{src.size}_bit'].bare_values.index(mod) 245 elif src.lane and mod in enums[f'lane_{src.size}_bit'].bare_values: 248 val = enums[f'lane_{src.size}_bit'].bare_values.index(mod) 250 elif src.combine and mod in enums['combin [all...] |
H A D | valhall_enums.h.py | 24 from valhall import safe_name, enums namespace 29 for enum in sorted(enums): 32 for i, value in enumerate(enums[enum].values):
|
H A D | disasm.py | 24 from valhall import instructions, immediates, enums, typesize, safe_name namespace 238 print(Template(template).render(OPCODES = OPCODE_BUCKETS, IMMEDIATES = immediates, ENUMS = enums, typesize = typesize, safe_name = safe_name))
|
/third_party/skia/third_party/externals/angle2/src/common/ |
H A D | gen_packed_gl_enums.py | 7 # Code generation for the packed enums. 46 enums = [] 56 assert (i < 255) # This makes sure enums fit in the uint8_t 57 enums.append(Enum(enum_name, values, i)) 59 enums.sort(key=lambda enum: enum.name) 60 return enums 79 // Declares ANGLE-specific enums classes for {api_enum_name}s and functions operating 117 def write_header(enums, path_prefix, file_name, data_source_name, includes, namespace, 121 for enum in enums: 155 // Implements ANGLE-specific enums classe [all...] |
/third_party/mesa3d/src/gallium/auxiliary/driver_trace/ |
H A D | enums2names.py | 5 # enums2names - Parse and convert enums to translator code 41 # List of enums we wish to include in output. 42 # NOTE: This needs to be updated if such enums are added. 75 print("enums2names - Parse and convert enums to translator code\n" 121 self.enums = {} 152 if self.name in self.enums: 154 self.name, self.enums[self.name]["start"], self.enums[self.name]["end"], 157 self.enums[self.name] = { 180 return self.enums 267 enums = hdrparser.parse_file(fh) global() variable 269 enums = hdrparser.parse_file(sys.stdin) global() variable [all...] |
/third_party/mesa3d/src/asahi/compiler/ |
H A D | agx_opcodes.h.py | 39 % for name in enums: 41 % for k in enums[name]: 42 AGX_${name.upper()}_${enums[name][k].replace('.', '_').upper()} = ${k}, 80 from agx_opcodes import opcodes, immediates, enums namespace 83 enums=enums)) variable
|
/third_party/mesa3d/src/mapi/glapi/gen/ |
H A D | glX_proto_size.py | 40 # "enums" is a set of lists. The element in the set is the 46 self.enums = {} 49 # is a list of index to "enums" that have that number of 58 # Fill self.count and self.enums using the dictionary of enums 76 raise RuntimeError("Not all enums for %s have the same mode." % (func_name)) 80 if e.value in self.enums: 81 if e.name not in self.enums[ e.value ]: 82 self.enums[ e.value ].append( e ) 87 self.enums[ [all...] |
/third_party/vk-gl-cts/scripts/khr_util/ |
H A D | registry.py | 49 enums = None variable in Enums 151 #BOZA: No reason to add alias: it has its own entry in enums in xml file 174 #BOZA: No reason to add alias: it has its own entry in enums 189 self.enums = EnumIndex(eRegistry.findall('enums/enum')) 190 for eEnum in self.enums: 245 self.enums = set() 263 modify(self.enums, enumName) 311 return parseEnum(registry.enums[enumName, api]) 356 # Missing enums ar [all...] |
/third_party/rust/crates/cxx/gen/lib/src/syntax/ |
H A D | types.rs | 18 pub enums: UnorderedMap<&'a Ident, &'a Enum>, 34 let mut enums = UnorderedMap::new(); variables 77 || enums.contains_key(ident)) 102 || enums.contains_key(ident)) 109 enums.insert(ident, enm); 111 // #![variants_from_header] enums are implicitly extern 121 || !structs.contains_key(ident) && !enums.contains_key(ident)) 198 trivial::required_trivial_reasons(apis, &all, &structs, &enums, &cxx); 203 enums, 269 || self.enums in is_maybe_trivial() [all...] |
/third_party/rust/crates/cxx/gen/build/src/syntax/ |
H A D | types.rs | 18 pub enums: UnorderedMap<&'a Ident, &'a Enum>, 34 let mut enums = UnorderedMap::new(); variables 77 || enums.contains_key(ident)) 102 || enums.contains_key(ident)) 109 enums.insert(ident, enm); 111 // #![variants_from_header] enums are implicitly extern 121 || !structs.contains_key(ident) && !enums.contains_key(ident)) 198 trivial::required_trivial_reasons(apis, &all, &structs, &enums, &cxx); 203 enums, 269 || self.enums in is_maybe_trivial() [all...] |
/third_party/rust/crates/cxx/gen/cmd/src/syntax/ |
H A D | types.rs | 18 pub enums: UnorderedMap<&'a Ident, &'a Enum>, 34 let mut enums = UnorderedMap::new(); variables 77 || enums.contains_key(ident)) 102 || enums.contains_key(ident)) 109 enums.insert(ident, enm); 111 // #![variants_from_header] enums are implicitly extern 121 || !structs.contains_key(ident) && !enums.contains_key(ident)) 198 trivial::required_trivial_reasons(apis, &all, &structs, &enums, &cxx); 203 enums, 269 || self.enums in is_maybe_trivial() [all...] |
/third_party/rust/crates/cxx/syntax/ |
H A D | types.rs | 18 pub enums: UnorderedMap<&'a Ident, &'a Enum>, 34 let mut enums = UnorderedMap::new(); variables 77 || enums.contains_key(ident)) 102 || enums.contains_key(ident)) 109 enums.insert(ident, enm); 111 // #![variants_from_header] enums are implicitly extern 121 || !structs.contains_key(ident) && !enums.contains_key(ident)) 198 trivial::required_trivial_reasons(apis, &all, &structs, &enums, &cxx); 203 enums, 269 || self.enums in is_maybe_trivial() [all...] |
/third_party/rust/crates/cxx/macro/src/syntax/ |
H A D | types.rs | 18 pub enums: UnorderedMap<&'a Ident, &'a Enum>, 34 let mut enums = UnorderedMap::new(); variables 77 || enums.contains_key(ident)) 102 || enums.contains_key(ident)) 109 enums.insert(ident, enm); 111 // #![variants_from_header] enums are implicitly extern 121 || !structs.contains_key(ident) && !enums.contains_key(ident)) 198 trivial::required_trivial_reasons(apis, &all, &structs, &enums, &cxx); 203 enums, 269 || self.enums in is_maybe_trivial() [all...] |
/third_party/nghttp2/doc/ |
H A D | mkapiref.py | 124 enums = [] 141 enums.append(process_enum(infile)) 148 return macros, enums, types, functions 152 macros, enums, types, functions): 161 {enums} 166 enums=os.path.splitext(os.path.basename(enumsfile.name))[0], 184 for doc in enums: 320 parser.add_argument('enums', type=argparse.FileType('w'), 321 help='enums section output file. The filename should be enums 330 enums = [] global() variable [all...] |
/third_party/mesa3d/src/amd/registers/ |
H A D | parse_kernel_headers.py | 100 # field: [type1, reg1, type2, reg2, ...] - apply different enums to different registers 769 enums = enums_missing[gfx_level] if gfx_level in enums_missing else {} 775 if name in enums: 777 enums[name] = {'entries': []} 790 enums[name]['entries'].append({ 825 if type_name not in enums: 840 if len(f) >= 4 and f[3] is not None and f[3] in enums: 863 'enums': enums,
|
/third_party/ffmpeg/libavdevice/ |
H A D | dshow_enummediatypes.c | 66 long WINAPI ff_dshow_enummediatypes_Clone(DShowEnumMediaTypes *this, DShowEnumMediaTypes **enums) in ff_dshow_enummediatypes_Clone() argument 70 if (!enums) in ff_dshow_enummediatypes_Clone() 76 *enums = new; in ff_dshow_enummediatypes_Clone()
|
/third_party/skia/third_party/externals/spirv-headers/tools/buildHeaders/ |
H A D | header.cpp | 222 Json::Value& enums = spvRoot["spv"]["enum"]; in TPrinter() local 242 enums[e - spv::OperandSource]["Values"][name] = enumRow.value; in TPrinter() 245 enums[e - spv::OperandSource]["Type"] = mask ? "Bit" : "Value"; in TPrinter() 246 enums[e - spv::OperandSource]["Name"] = enumName; in TPrinter() 251 auto& entry = enums[spv::OperandOpcode - spv::OperandSource]; in TPrinter() 329 const Json::Value& enums = spvRoot["spv"]["enum"]; in printDefs() local 331 for (auto opClass = enums.begin(); opClass != enums.end(); ++opClass) { in printDefs() 357 out << enumEnd(opName, style, ++nextOpClass == enums.end()); in printDefs() 505 const Json::Value& enums variable 579 const Json::Value& enums = spvRoot["spv"]["enum"]; global() variable [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Headers/tools/buildHeaders/ |
H A D | header.cpp | 222 Json::Value& enums = spvRoot["spv"]["enum"]; in TPrinter() local 242 enums[e - spv::OperandSource]["Values"][name] = enumRow.value; in TPrinter() 245 enums[e - spv::OperandSource]["Type"] = mask ? "Bit" : "Value"; in TPrinter() 246 enums[e - spv::OperandSource]["Name"] = enumName; in TPrinter() 251 auto& entry = enums[spv::OperandOpcode - spv::OperandSource]; in TPrinter() 329 const Json::Value& enums = spvRoot["spv"]["enum"]; in printDefs() local 331 for (auto opClass = enums.begin(); opClass != enums.end(); ++opClass) { in printDefs() 357 out << enumEnd(opName, style, ++nextOpClass == enums.end()); in printDefs() 505 const Json::Value& enums variable 579 const Json::Value& enums = spvRoot["spv"]["enum"]; global() variable [all...] |
/third_party/spirv-headers/tools/buildHeaders/ |
H A D | header.cpp | 224 Json::Value& enums = spvRoot["spv"]["enum"]; in TPrinter() local 244 enums[e - spv::OperandSource]["Values"][name] = enumRow.value; in TPrinter() 247 enums[e - spv::OperandSource]["Type"] = mask ? "Bit" : "Value"; in TPrinter() 248 enums[e - spv::OperandSource]["Name"] = enumName; in TPrinter() 253 auto& entry = enums[spv::OperandOpcode - spv::OperandSource]; in TPrinter() 331 const Json::Value& enums = spvRoot["spv"]["enum"]; in printDefs() local 333 for (auto opClass = enums.begin(); opClass != enums.end(); ++opClass) { in printDefs() 359 out << enumEnd(opName, style, ++nextOpClass == enums.end()); in printDefs() 507 const Json::Value& enums variable 579 const Json::Value& enums = spvRoot["spv"]["enum"]; printMaskOperators() local [all...] |
/third_party/vk-gl-cts/scripts/egl/ |
H A D | __init__.py | 28 import egl.enums namespace 40 enums.gen(iface)
|
/third_party/skia/third_party/externals/spirv-tools/utils/ |
H A D | generate_grammar_tables.py | 73 """Returns a string containing a braced list of capabilities as enums. 79 a string containing the braced list of SpvCapability* enums named by caps. 110 """Returns a string containing a braced list of extensions as enums. 510 def generate_operand_kind_table(enums): 512 # We only need to output info tables for those operand kinds that are enums. 513 enums = [e for e in enums if e.get('category') in ['ValueEnum', 'BitEnum']] 516 for enum in enums 521 for enum in enums 523 enums [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/ |
H A D | generate_grammar_tables.py | 73 """Returns a string containing a braced list of capabilities as enums. 79 a string containing the braced list of SpvCapability* enums named by caps. 110 """Returns a string containing a braced list of extensions as enums. 510 def generate_operand_kind_table(enums): 512 # We only need to output info tables for those operand kinds that are enums. 513 enums = [e for e in enums if e.get('category') in ['ValueEnum', 'BitEnum']] 516 for enum in enums 521 for enum in enums 523 enums [all...] |