Home
last modified time | relevance | path

Searched full:bitset (Results 1 – 25 of 1263) sorted by relevance

12345678910>>...51

/external/cronet/third_party/libc++/src/test/std/utilities/template.bitset/
Dbitset_test_cases.h12 #include <bitset>
19 TEST_CONSTEXPR_CXX23 std::vector<std::bitset<N> > get_test_cases();
22 TEST_CONSTEXPR_CXX23 inline std::vector<std::bitset<0> > get_test_cases<0>() {
23 std::vector<std::bitset<0> > cases;
24 cases.push_back(std::bitset<0>());
29 TEST_CONSTEXPR_CXX23 inline std::vector<std::bitset<1> > get_test_cases<1>() {
30 std::vector<std::bitset<1> > cases;
31 cases.push_back(std::bitset<1>("0"));
32 cases.push_back(std::bitset<1>("1"));
37 TEST_CONSTEXPR_CXX23 inline std::vector<std::bitset<2> > get_test_cases<2>() {
[all …]
/external/antlr/runtime/C/src/
Dantlr3bitset.c43 static void antlr3BitsetORInPlace (pANTLR3_BITSET bitset, pANTLR3_BITSET bitset2);
44 static ANTLR3_UINT32 antlr3BitsetSize (pANTLR3_BITSET bitset);
45 static void antlr3BitsetAdd (pANTLR3_BITSET bitset, ANTLR3_INT32 bit);
47 static ANTLR3_BOOLEAN antlr3BitsetMember (pANTLR3_BITSET bitset, ANTLR3_UINT32 bit);
48 static ANTLR3_UINT32 antlr3BitsetNumBits (pANTLR3_BITSET bitset);
49 static void antlr3BitsetRemove (pANTLR3_BITSET bitset, ANTLR3_UINT32 bit);
50 static ANTLR3_BOOLEAN antlr3BitsetIsNil (pANTLR3_BITSET bitset);
51 static pANTLR3_INT32 antlr3BitsetToIntList (pANTLR3_BITSET bitset);
55 static void growToInclude (pANTLR3_BITSET bitset, ANTLR3_INT32 bit);
56 static void grow (pANTLR3_BITSET bitset, ANTLR3_INT32 newSize);
[all …]
/external/llvm-libc/test/src/__support/CPP/
Dbitset_test.cpp1 //===-- Unittests for bitset ----------------------------------------------===//
9 #include "src/__support/CPP/bitset.h"
13 LIBC_NAMESPACE::cpp::bitset<1> bitset; in TEST() local
14 EXPECT_FALSE(bitset.test(0)); in TEST()
15 bitset.set(0); in TEST()
16 EXPECT_TRUE(bitset.test(0)); in TEST()
20 LIBC_NAMESPACE::cpp::bitset<2> bitset; in TEST() local
21 bitset.set(0); in TEST()
22 EXPECT_TRUE(bitset.test(0)); in TEST()
23 bitset.set(1); in TEST()
[all …]
/external/mesa3d/src/freedreno/afuc/
Dafuc.xml28 <bitset name="#instruction" size="32">
43 </bitset>
97 <bitset name="#src" size="5">
114 </bitset>
116 <bitset name="#dst" size="5">
133 </bitset>
135 <bitset name="#instruction-rep" extends="#instruction">
141 </bitset>
151 <bitset name="#alu-2src" extends="#instruction-rep">
162 </bitset>
[all …]
/external/antlr/runtime/Cpp/include/
Dantlr3bitset.inl44 // Allocate memory for the bitset structure itself
46 // to include in the bitset, so we need at at least
52 BitsetType* bitset = new BitsetType(); local
61 if( bitset->get_blist().get_length() <= count)
62 bitset->grow(count+1);
64 typename ImplTraits::BitsetListType& blist = bitset->get_blist();
70 // return the new bitset
72 return bitset;
78 BitsetType* bitset; local
86 // Allocate memory for the bitset structure itself
[all …]
/external/mesa3d/src/freedreno/isa/
Dir3-cat2.xml31 <bitset name="#instruction-cat2" extends="#instruction">
71 </bitset>
73 <bitset name="#instruction-cat2-1src" extends="#instruction-cat2">
93 </bitset>
97 <bitset name="#instruction-cat2-2src" extends="#instruction-cat2">
124 </bitset>
127 <bitset name="#instruction-cat2-2src-cond" extends="#instruction-cat2">
157 </bitset>
160 <bitset name="#instruction-cat2-2src-input" extends="#instruction-cat2">
175 </bitset>
[all …]
Dir3-cat0.xml31 <bitset name="#instruction-cat0" extends="#instruction">
54 </bitset>
57 <bitset name="#instruction-cat0-0src" extends="#instruction-cat0">
65 </bitset>
67 <bitset name="nop" extends="#instruction-cat0-0src">
70 </bitset>
72 <bitset name="end" extends="#instruction-cat0-0src">
75 </bitset>
77 <bitset name="ret" extends="#instruction-cat0-0src">
80 </bitset>
[all …]
Dir3-cat6.xml40 <bitset name="#const-dst-imm" extends="#const-dst">
46 </bitset>
48 <bitset name="#const-dst-a1" extends="#const-dst">
54 </bitset>
56 <bitset name="#const-dst" size="9">
64 </bitset>
66 <bitset name="#instruction-cat6" extends="#instruction">
75 </bitset>
77 <bitset name="#instruction-cat6-a3xx" extends="#instruction-cat6">
80 </bitset>
[all …]
Dir3-cat3.xml31 <bitset name="#cat3-src" size="13">
39 </bitset>
41 <bitset name="#cat3-src-gpr" extends="#cat3-src">
53 </bitset>
56 <bitset name="#cat3-src-const-or-immed" extends="#cat3-src">
77 </bitset>
79 <bitset name="#cat3-src-relative" extends="#cat3-src">
84 </bitset>
86 <bitset name="#cat3-src-relative-gpr" extends="#cat3-src-relative">
92 </bitset>
[all …]
Dir3-cat5.xml31 <bitset name="#cat5-s2en-bindless-base" size="1">
36 bitset. We just arbitrarily map this to BASE_LO
52 </bitset>
54 <bitset name="#instruction-cat5" extends="#instruction">
126 </bitset>
128 <bitset name="#instruction-cat5-tex" extends="#instruction-cat5">
162 </bitset>
164 <bitset name="isam" extends="#instruction-cat5-tex">
170 </bitset>
172 <bitset name="isaml" extends="#instruction-cat5-tex">
[all …]
/external/mesa3d/src/compiler/isaspec/
Ddecode.py43 def case_name(self, bitset, name): argument
44 …return bitset.encode.case_prefix + name.upper().replace('.', '_').replace('-', '_').replace('#', '…
46 # Return a list of all <map> entries for a leaf bitset, with the child
47 # bitset overriding the parent bitset's entries. Because we can't resolve
51 def decode_fields(self, bitset): argument
52 if bitset.get_root().decode is None:
56 if bitset.encode is not None:
57 for name, expr in bitset.encode.maps.items():
61 if bitset.extends is not None:
62 for field in self.decode_fields(self.isa.bitsets[bitset.extends]):
[all …]
Dencode.py32 # from the decode case. (Or put another way, the decoded bitset
35 # In the xml, we can have multiple override cases per bitset,
59 # } else { // maps to the default case in bitset, ie. outside <override/>
65 # in a bitset may be conditional
67 def __init__(self, bitset, field, case): argument
71 self.expr = bitset.isa.expressions[case.expr]
79 def __init__(self, bitset, field, case): argument
83 self.expr = bitset.isa.expressions[case.expr]
90 def __init__(self, bitset, case, name): argument
91 self.bitset = bitset # leaf bitset
[all …]
Disaspec_decode_impl.c36 #include "util/bitset.h"
47 * The set of leaf node bitsets in the bitset hiearchy which defines all
58 * Decode scope. When parsing a field that is itself a bitset, we push a
59 * new scope to the stack. A nested bitset is allowed to resolve fields
61 * bitsets, where half/fullness is determined by fields outset if bitset
62 * in the instruction containing the bitset.
81 * Current bitset value being decoded
86 * Current bitset.
88 const struct isa_bitset *bitset; member
135 * Bitset of instructions that are branch targets (if options->branch_labels
[all …]
/external/libcxx/include/
Dbitset2 //===---------------------------- bitset ----------------------------------===//
15 bitset synopsis
23 class bitset
29 friend class bitset;
41 constexpr bitset() noexcept;
42 constexpr bitset(unsigned long long val) noexcept;
44 explicit bitset(const charT* str,
48 explicit bitset(const basic_string<charT,traits,Allocator>& str,
54 // 23.3.5.2 bitset operations:
55 bitset& operator&=(const bitset& rhs) noexcept;
[all …]
/external/antlr/runtime/ObjC/Framework/test/runtime/sets/
DANTLRBitSetTest.m20 ANTLRBitSet *bitSet = [ANTLRBitSet newBitSetWithBits:bitData Count:2];
21 CFIndex actual = (CFIndex)[bitSet numBits];
25 [bitSet release];
43 ANTLRBitSet *bitSet = [ANTLRBitSet newBitSetWithArray:bits];
44 CFIndex actual = (CFIndex)[bitSet numBits];
47 [bitSet release];
53 ANTLRBitSet *bitSet = [ANTLRBitSet newBitSet];
54 [bitSet add:1];
55 [bitSet add:2];
56 [bitSet add:3];
[all …]
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/util/
DFluentBitSet.java20 import java.util.BitSet;
25 * A fluent {@link BitSet} with additional operations.
27 …rom Apache Commons VFS with more added to act as a fluent replacement for {@link java.util.BitSet}.
36 * Working BitSet.
38 private final BitSet bitSet; field in FluentBitSet
44 this(new BitSet()); in FluentBitSet()
52 public FluentBitSet(final BitSet set) { in FluentBitSet()
53 this.bitSet = Objects.requireNonNull(set, "set"); in FluentBitSet()
64 this(new BitSet(nbits)); in FluentBitSet()
75 public FluentBitSet and(final BitSet set) { in and()
[all …]
/external/cronet/third_party/libc++/src/include/
Dbitset14 bitset synopsis
22 class bitset
28 friend class bitset;
40 constexpr bitset() noexcept;
41 constexpr bitset(unsigned long long val) noexcept;
43 constexpr explicit bitset(const charT* str,
47 constexpr explicit bitset(const charT* str,
51 explicit bitset(
57 constexpr explicit bitset(
63 // 23.3.5.2 bitset operations:
[all …]
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/draft/
DIdentifierInfo.java7 import java.util.BitSet;
64 private final BitSet requiredScripts = new BitSet();
65 private final Set<BitSet> scriptSetSet = new HashSet<>();
66 private final BitSet commonAmongAlternates = new BitSet();
90 BitSet temp = new BitSet(); // Will reuse this. in setIdentifier()
113 temp = new BitSet(); in setIdentifier()
123 for (Iterator<BitSet> it = scriptSetSet.iterator(); it.hasNext(); ) { in setIdentifier()
124 final BitSet next = it.next(); in setIdentifier()
129 for (BitSet other : scriptSetSet) { in setIdentifier()
148 static final BitSet COMMON_AND_INHERITED = set(new BitSet(), UScript.COMMON, UScript.INHERITED);
[all …]
/external/antlr/runtime/JavaScript/src/org/antlr/runtime/
DBitSet.js2 * A BitSet similar to java.util.BitSet.
11 * representing the bitset. These are typically
14 org.antlr.runtime.BitSet = function(bits) { class in org.antlr.runtime
16 bits = org.antlr.runtime.BitSet.BITS;
21 * An array of Numbers representing the BitSet.
30 org.antlr.lang.augmentObject(org.antlr.runtime.BitSet, {
34 * @memberOf org.antlr.runtime.BitSet
41 * @memberOf org.antlr.runtime.BitSet
51 * @memberOf org.antlr.runtime.BitSet
62 * @memberOf org.antlr.runtime.BitSet
[all …]
/external/antlr/runtime/ObjC/Framework/examples/simplecTreeParser/
DSimpleCTP.java807 …public static final BitSet FOLLOW_declaration_in_program43 = new BitSet(new long[]{0x0000000000000…
808 …public static final BitSet FOLLOW_variable_in_declaration63 = new BitSet(new long[]{0x000000000000…
809 …public static final BitSet FOLLOW_FUNC_DECL_in_declaration74 = new BitSet(new long[]{0x00000000000…
810 …public static final BitSet FOLLOW_functionHeader_in_declaration76 = new BitSet(new long[]{0x000000…
811 …public static final BitSet FOLLOW_FUNC_DEF_in_declaration88 = new BitSet(new long[]{0x000000000000…
812 …public static final BitSet FOLLOW_functionHeader_in_declaration90 = new BitSet(new long[]{0x000000…
813 …public static final BitSet FOLLOW_block_in_declaration92 = new BitSet(new long[]{0x000000000000000…
814 …public static final BitSet FOLLOW_VAR_DEF_in_variable113 = new BitSet(new long[]{0x000000000000000…
815 …public static final BitSet FOLLOW_type_in_variable115 = new BitSet(new long[]{0x0000000000000400L}…
816 …public static final BitSet FOLLOW_declarator_in_variable117 = new BitSet(new long[]{0x000000000000…
[all …]
/external/antlr/runtime/ActionScript/project/test/org/antlr/runtime/test/
DTestBitSet.as4 import org.antlr.runtime.BitSet;
10 var bitSet:BitSet = new BitSet();
12 assertEquals(0, bitSet.numBits);
13 assertEquals(0, bitSet.toPackedArray().length);
14 assertEquals(0, bitSet.size);
15 assertTrue(bitSet.isNil);
16 assertEquals("{}", bitSet.toString());
18 bitSet = BitSet.of(0, 1, 2);
19 assertEquals(32, bitSet.numBits);
20 assertEquals(1, bitSet.toPackedArray().length);
[all …]
/external/google-smali/smali/src/main/java/com/android/tools/smali/smali/
DsmaliTreeWalker.java9 import org.antlr.runtime.BitSet;
8240 …public static final BitSet FOLLOW_I_CLASS_DEF_in_smali_file52 = new BitSet(new long[]{0x0000000000…
8241 …public static final BitSet FOLLOW_header_in_smali_file54 = new BitSet(new long[]{0x000000000000000…
8242 …public static final BitSet FOLLOW_methods_in_smali_file56 = new BitSet(new long[]{0x00000000000000…
8243 …public static final BitSet FOLLOW_fields_in_smali_file58 = new BitSet(new long[]{0x000000000000000…
8244 …public static final BitSet FOLLOW_annotations_in_smali_file60 = new BitSet(new long[]{0x0000000000…
8245 …public static final BitSet FOLLOW_class_spec_in_header85 = new BitSet(new long[]{0x000000000000000…
8246 …public static final BitSet FOLLOW_super_spec_in_header87 = new BitSet(new long[]{0x000000000000000…
8247 …public static final BitSet FOLLOW_implements_list_in_header90 = new BitSet(new long[]{0x0000000000…
8248 …public static final BitSet FOLLOW_source_spec_in_header92 = new BitSet(new long[]{0x00000000000000…
[all …]
/external/mesa3d/src/nouveau/compiler/nak/
Dbitset.rs9 pub struct BitSet { struct
13 impl BitSet { impl
14 pub fn new() -> BitSet { in new()
15 BitSet { words: Vec::new() } in new()
152 pub fn union_with(&mut self, other: &BitSet) -> bool { in union_with()
166 impl Default for BitSet { implementation
167 fn default() -> BitSet { in default()
168 BitSet::new() in default()
172 impl BitAndAssign for BitSet { implementation
173 fn bitand_assign(&mut self, rhs: BitSet) { in bitand_assign() argument
[all …]
/external/mesa3d/src/etnaviv/isa/
Detnaviv.xml110 <bitset name="#instruction-dst" size="14">
127 </bitset>
129 <bitset name="#instruction" size="128">
140 </bitset>
142 <bitset name="#src-swizzle" size="8">
151 </bitset>
159 <bitset name="#instruction-alu-base" extends="#instruction">
177 </bitset>
179 <bitset name="#instruction-alu" extends="#instruction-alu-base">
181 </bitset>
[all …]
/external/doclava/src/com/google/doclava/parser/
DJavaParser.java20 import org.antlr.runtime.BitSet;
19987 …public static final BitSet FOLLOW_annotations_in_compilationUnit64 = new BitSet(new long[]{0x08000…
19988 …public static final BitSet FOLLOW_packageDeclaration_in_compilationUnit93 = new BitSet(new long[]{…
19989 …public static final BitSet FOLLOW_importDeclaration_in_compilationUnit115 = new BitSet(new long[]{…
19990 …public static final BitSet FOLLOW_typeDeclaration_in_compilationUnit137 = new BitSet(new long[]{0x…
19991 …public static final BitSet FOLLOW_PACKAGE_in_packageDeclaration167 = new BitSet(new long[]{0x00000…
19992 …public static final BitSet FOLLOW_qualifiedName_in_packageDeclaration169 = new BitSet(new long[]{0…
19993 …public static final BitSet FOLLOW_SEMI_in_packageDeclaration179 = new BitSet(new long[]{0x00000000…
19994 …public static final BitSet FOLLOW_IMPORT_in_importDeclaration198 = new BitSet(new long[]{0x0000000…
19995 …public static final BitSet FOLLOW_STATIC_in_importDeclaration209 = new BitSet(new long[]{0x0000000…
[all …]

12345678910>>...51