Home
last modified time | relevance | path

Searched refs:bitSet (Results 1 – 20 of 20) sorted by relevance

/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/antlr/runtime/ActionScript/project/test/org/antlr/runtime/test/
DTestBitSet.as10 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);
21 //assertEquals(1, bitSet.size);
[all …]
/external/guava/guava-tests/benchmark/com/google/common/base/
DWhitespaceMatcherBenchmark.java55 BitSet bitSet = new BitSet(); in setUp() local
57 bitSet.set(OLD_WHITESPACE_TABLE.charAt(i)); in setUp()
59 bitSet.clear(0); in setUp()
60 bitSet.clear(1); in setUp()
62 teststring = newTestString(new Random(1), bitSet, percentMatching); in setUp()
87 private static String allMatchingChars(BitSet bitSet) { in allMatchingChars() argument
88 final char[] result = new char[bitSet.cardinality()]; in allMatchingChars()
89 for (int j = 0, c = bitSet.nextSetBit(0); j < result.length; ++j) { in allMatchingChars()
91 c = bitSet.nextSetBit(c + 1); in allMatchingChars()
96 private static String newTestString(Random random, BitSet bitSet, int percentMatching) { in newTestString() argument
[all …]
/external/guava/android/guava-tests/benchmark/com/google/common/base/
DWhitespaceMatcherBenchmark.java55 BitSet bitSet = new BitSet(); in setUp() local
57 bitSet.set(OLD_WHITESPACE_TABLE.charAt(i)); in setUp()
59 bitSet.clear(0); in setUp()
60 bitSet.clear(1); in setUp()
62 teststring = newTestString(new Random(1), bitSet, percentMatching); in setUp()
87 private static String allMatchingChars(BitSet bitSet) { in allMatchingChars() argument
88 final char[] result = new char[bitSet.cardinality()]; in allMatchingChars()
89 for (int j = 0, c = bitSet.nextSetBit(0); j < result.length; ++j) { in allMatchingChars()
91 c = bitSet.nextSetBit(c + 1); in allMatchingChars()
96 private static String newTestString(Random random, BitSet bitSet, int percentMatching) { in newTestString() argument
[all …]
/external/kotlinx.atomicfu/atomicfu/src/commonTest/kotlin/kotlinx/atomicfu/test/
DLockFreeIntBitsTest.kt15 check(bs.bitSet(0)) in testBasic()
17 check(!bs.bitSet(0)) in testBasic()
20 check(bs.bitSet(1)) in testBasic()
22 check(!bs.bitSet(1)) in testBasic()
23 check(!bs.bitSet(0)) in testBasic()
49 fun bitSet(index: Int): Boolean { in bitSet() method
/external/caliper/examples/src/main/java/examples/
DBitSetBenchmark.java89 private BitSet bitSet; field in BitSetBenchmark
93 bitSet = new BitSet(64); in setUp()
107 bitSet.set(i & 0x3F, true); in setBitSetX64()
109 return bitSet.hashCode(); in setBitSetX64()
137 bitSet.set(n, bitString[n] == '1'); in charsToBitSet()
140 return bitSet.toString(); in charsToBitSet()
/external/smali/dexlib2/src/main/java/org/jf/util/
DBitSetUtils.java38 BitSet bitSet = new BitSet(); in bitSetOfIndexes() local
40 bitSet.set(index); in bitSetOfIndexes()
42 return bitSet; in bitSetOfIndexes()
/external/angle/src/libANGLE/capture/
Dgl_enum_utils.cpp77 const angle::BitSet<32> bitSet(value); in GLbitfieldToString() local
79 for (const auto index : bitSet) in GLbitfieldToString()
/external/antlr/runtime/C/src/
Dantlr3tokenstream.c772 pANTLR3_BITSET bitSet; in getTokensList() local
775 bitSet = antlr3BitsetList(list->table); in getTokensList()
777 newlist = tokenStream->getTokensSet(tokenStream, start, stop, bitSet); in getTokensList()
779 bitSet->free(bitSet); in getTokensList()
788 pANTLR3_BITSET bitSet; in getTokensType() local
791 bitSet = antlr3BitsetOf(type, -1); in getTokensType()
792 newlist = tokenStream->getTokensSet(tokenStream, start, stop, bitSet); in getTokensType()
794 bitSet->free(bitSet); in getTokensType()
Dantlr3bitset.c209 pANTLR3_BITSET bitSet; in antlr3BitsetList() local
218 bitSet = antlr3BitsetNew(0); in antlr3BitsetList()
224 bitSet->add(bitSet, (ANTLR3_UINT32)bit); in antlr3BitsetList()
/external/icu/icu4c/source/test/perf/utrie2perf/
Dutrie2perf.cpp221 uint32_t bitSet=0; in call() local
224 bitSet|=(uint32_t)1<<u_charDirection(c); in call()
226 if(length>0 && bitSet==0) { in call()
/external/cldr/tools/java/org/unicode/cldr/draft/
DTestMixedScript.java92 BitSet bitSet = new BitSet();
95 UScript.getScriptExtensions(i, bitSet); in UScript.getScriptExtensions() argument
96 if (bitSet.cardinality() > 0) {
/external/guava/android/guava-tests/test/com/google/common/base/
DCharMatcherTest.java668 private static BitSet bitSet(String chars) { in bitSet() method in CharMatcherTest
669 return bitSet(chars.toCharArray()); in bitSet()
673 private static BitSet bitSet(char[] chars) { in bitSet() method in CharMatcherTest
683 CharMatcher len1 = SmallCharMatcher.from(bitSet("#"), "#"); in testSmallCharMatcher()
684 CharMatcher len2 = SmallCharMatcher.from(bitSet("ab"), "ab"); in testSmallCharMatcher()
685 CharMatcher len3 = SmallCharMatcher.from(bitSet("abc"), "abc"); in testSmallCharMatcher()
686 CharMatcher len4 = SmallCharMatcher.from(bitSet("abcd"), "abcd"); in testSmallCharMatcher()
711 CharMatcher m = SmallCharMatcher.from(bitSet(chars), new String(chars)); in testSmallCharMatcher()
/external/guava/guava-tests/test/com/google/common/base/
DCharMatcherTest.java668 private static BitSet bitSet(String chars) { in bitSet() method in CharMatcherTest
669 return bitSet(chars.toCharArray()); in bitSet()
673 private static BitSet bitSet(char[] chars) { in bitSet() method in CharMatcherTest
683 CharMatcher len1 = SmallCharMatcher.from(bitSet("#"), "#"); in testSmallCharMatcher()
684 CharMatcher len2 = SmallCharMatcher.from(bitSet("ab"), "ab"); in testSmallCharMatcher()
685 CharMatcher len3 = SmallCharMatcher.from(bitSet("abc"), "abc"); in testSmallCharMatcher()
686 CharMatcher len4 = SmallCharMatcher.from(bitSet("abcd"), "abcd"); in testSmallCharMatcher()
711 CharMatcher m = SmallCharMatcher.from(bitSet(chars), new String(chars)); in testSmallCharMatcher()
/external/antlr/runtime/Cpp/include/
Dantlr3tokenstream.inl719 BitsetType* bitSet; local
721 bitSet = Bitset<ImplTraits>::BitsetFromList(list);
722 this->getTokensSet(start, stop, bitSet, newlist);
723 delete bitSet;
731 BitsetType* bitSet; local
733 bitSet = BitsetType::BitsetOf(type, -1);
734 this->getTokensSet(start, stop, bitSet, newlist);
736 delete bitSet;
/external/antlr/runtime/ObjC/Framework/
DBaseRecognizer.h145 - (void) consumeUntilFollow:(id<IntStream>)anInput Follow:(ANTLRBitSet *)bitSet;
/external/deqp/modules/egl/
DteglResizeTests.cpp317 inline bool hasBits (T bitSet, T requiredBits) in hasBits() argument
319 return (bitSet & requiredBits) == requiredBits; in hasBits()
/external/guava/guava/src/com/google/common/base/
DCharMatcher.java1001 void setBits(BitSet bitSet) {
1002 bitSet.or(table);
/external/guava/android/guava/src/com/google/common/base/
DCharMatcher.java1000 void setBits(BitSet bitSet) {
1001 bitSet.or(table);
/external/antlr/runtime/ActionScript/project/src/org/antlr/runtime/
DBaseRecognizer.as652 public function consumeUntil(input:IntStream, bitSet:BitSet):void {
653 //trace("consumeUntil("+bitSet.toStringFromTokens(tokenNames)+")");
655 while (ttype != TokenConstants.EOF && !bitSet.member(ttype) ) {