/external/antlr/runtime/C/src/ |
D | antlr3bitset.c | 43 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/antlr/runtime/Cpp/include/ |
D | antlr3bitset.inl | 44 // 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 …]
|
D | antlr3bitset.hpp | 3 * Defines the basic structures of an ANTLR3 bitset. this is a C version of the 4 * cut down Bitset class provided with the java version of antlr 3. 77 /// of the bitset code. Note that the pointer here may be static if laid down 98 /// Creates a new bitset with at least one 64 bit bset of bits, but as 110 /// - pANTLR3_BITSET = antlrBitsetOf(-1); Create empty bitset 124 class Bitset : public ImplTraits::AllocPolicyType class 137 Bitset( ANTLR_UINT32 nbits=0 ); 138 Bitset( const Bitset& bitset ); 139 Bitset* clone() const; 140 Bitset* bor(Bitset* bitset2); [all …]
|
/external/libcxx/include/ |
D | bitset | 2 //===---------------------------- 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/ |
D | ANTLRBitSetTest.m | 20 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/smali/smali/src/main/java/org/jf/smali/ |
D | smaliTreeWalker.java | 9 import org.antlr.runtime.BitSet; 7379 …public static final BitSet FOLLOW_I_CLASS_DEF_in_smali_file52 = new BitSet(new long[]{0x0000000000… 7380 …public static final BitSet FOLLOW_header_in_smali_file54 = new BitSet(new long[]{0x000000000000000… 7381 …public static final BitSet FOLLOW_methods_in_smali_file56 = new BitSet(new long[]{0x00000000000000… 7382 …public static final BitSet FOLLOW_fields_in_smali_file58 = new BitSet(new long[]{0x000000000000000… 7383 …public static final BitSet FOLLOW_annotations_in_smali_file60 = new BitSet(new long[]{0x0000000000… 7384 …public static final BitSet FOLLOW_class_spec_in_header85 = new BitSet(new long[]{0x000000000000000… 7385 …public static final BitSet FOLLOW_super_spec_in_header87 = new BitSet(new long[]{0x000000000000000… 7386 …public static final BitSet FOLLOW_implements_list_in_header90 = new BitSet(new long[]{0x0000000000… 7387 …public static final BitSet FOLLOW_source_spec_in_header92 = new BitSet(new long[]{0x00000000000000… [all …]
|
D | smaliParser.java | 15177 …public static final BitSet FOLLOW_class_spec_in_smali_file1075 = new BitSet(new long[]{0x000001100… 15178 …public static final BitSet FOLLOW_super_spec_in_smali_file1086 = new BitSet(new long[]{0x000001100… 15179 …public static final BitSet FOLLOW_implements_spec_in_smali_file1094 = new BitSet(new long[]{0x0000… 15180 …public static final BitSet FOLLOW_source_spec_in_smali_file1103 = new BitSet(new long[]{0x00000110… 15181 …public static final BitSet FOLLOW_method_in_smali_file1111 = new BitSet(new long[]{0x0000011000010… 15182 …public static final BitSet FOLLOW_field_in_smali_file1117 = new BitSet(new long[]{0x00000110000100… 15183 …public static final BitSet FOLLOW_annotation_in_smali_file1123 = new BitSet(new long[]{0x000001100… 15184 …public static final BitSet FOLLOW_EOF_in_smali_file1134 = new BitSet(new long[]{0x0000000000000002… 15185 …public static final BitSet FOLLOW_CLASS_DIRECTIVE_in_class_spec1221 = new BitSet(new long[]{0x0000… 15186 …public static final BitSet FOLLOW_access_list_in_class_spec1223 = new BitSet(new long[]{0x00000000… [all …]
|
/external/cldr/tools/java/org/unicode/cldr/draft/ |
D | IdentifierInfo.java | 3 import java.util.BitSet; 65 private final BitSet requiredScripts = new BitSet(); 66 private final Set<BitSet> scriptSetSet = new HashSet<BitSet>(); 67 private final BitSet commonAmongAlternates = new BitSet(); 91 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 …]
|
D | UnmodifiableBitSet.java | 3 import java.util.BitSet; 5 public class UnmodifiableBitSet extends BitSet { 9 public UnmodifiableBitSet(BitSet s) { in UnmodifiableBitSet() 15 public BitSet getModifiableBitset() { in getModifiableBitset() 17 BitSet result = new BitSet(); in getModifiableBitset() 23 public void and(BitSet set) { in and() 28 public void andNot(BitSet set) { in andNot() 78 public void or(BitSet set) { in or() 83 public void xor(BitSet set) { in xor() 88 // BitSet s = new BitSet(); [all …]
|
/external/antlr/runtime/JavaScript/src/org/antlr/runtime/ |
D | BitSet.js | 2 * 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/ |
D | SimpleCTP.java | 807 …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 …]
|
D | SimpleCParser.java | 1757 …public static final BitSet FOLLOW_declaration_in_program85 = new BitSet(new long[]{0x000000000001C… 1758 …public static final BitSet FOLLOW_variable_in_declaration105 = new BitSet(new long[]{0x00000000000… 1759 …public static final BitSet FOLLOW_functionHeader_in_declaration115 = new BitSet(new long[]{0x00000… 1760 …public static final BitSet FOLLOW_21_in_declaration117 = new BitSet(new long[]{0x0000000000000002L… 1761 …public static final BitSet FOLLOW_functionHeader_in_declaration135 = new BitSet(new long[]{0x00000… 1762 …public static final BitSet FOLLOW_block_in_declaration137 = new BitSet(new long[]{0x00000000000000… 1763 …public static final BitSet FOLLOW_type_in_variable166 = new BitSet(new long[]{0x0000000000000400L}… 1764 …public static final BitSet FOLLOW_declarator_in_variable168 = new BitSet(new long[]{0x000000000020… 1765 … public static final BitSet FOLLOW_21_in_variable170 = new BitSet(new long[]{0x0000000000000002L}); 1766 …public static final BitSet FOLLOW_ID_in_declarator199 = new BitSet(new long[]{0x0000000000000002L}… [all …]
|
/external/antlr/runtime/ActionScript/project/test/org/antlr/runtime/test/ |
D | TestBitSet.as | 4 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/doclava/src/com/google/doclava/parser/ |
D | JavaParser.java | 20 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 …]
|
/external/antlr/tool/src/main/java/org/antlr/misc/ |
D | BitSet.java | 38 /**A BitSet to replace java.util.BitSet. 42 * operations were added. I cannot contain a BitSet because there 53 public class BitSet implements IntSet, Cloneable { class 67 /** Construct a bitset of size one word (64 bits) */ 68 public BitSet() { in BitSet() method in BitSet 73 public BitSet(long[] bits_) { in BitSet() method in BitSet 77 /** Construct a bitset given the size 78 * @param nbits The size of the bitset in bits 80 public BitSet(int nbits) { in BitSet() method in BitSet 99 if ( set instanceof BitSet ) { in addAll() [all …]
|
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.Test/BuildOptions/ |
D | DebugTreeGrammar.cs | 815 public static readonly BitSet _stat_in_prog48 = new BitSet(new ulong[]{0x3CCF2UL}); 816 public static readonly BitSet _expr_in_stat63 = new BitSet(new ulong[]{0x2UL}); 817 public static readonly BitSet _17_in_stat98 = new BitSet(new ulong[]{0x4UL}); 818 public static readonly BitSet _ID_in_stat100 = new BitSet(new ulong[]{0x1CCD0UL}); 819 public static readonly BitSet _expr_in_stat102 = new BitSet(new ulong[]{0x8UL}); 820 public static readonly BitSet _FUNC_in_stat128 = new BitSet(new ulong[]{0x4UL}); 821 public static readonly BitSet _16_in_expr172 = new BitSet(new ulong[]{0x4UL}); 822 public static readonly BitSet _expr_in_expr176 = new BitSet(new ulong[]{0x1CCD0UL}); 823 public static readonly BitSet _expr_in_expr180 = new BitSet(new ulong[]{0x8UL}); 824 public static readonly BitSet _10_in_expr200 = new BitSet(new ulong[]{0x4UL}); [all …]
|
D | ProfileTreeGrammar.cs | 820 public static readonly BitSet _stat_in_prog48 = new BitSet(new ulong[]{0x3CCF2UL}); 821 public static readonly BitSet _expr_in_stat63 = new BitSet(new ulong[]{0x2UL}); 822 public static readonly BitSet _17_in_stat98 = new BitSet(new ulong[]{0x4UL}); 823 public static readonly BitSet _ID_in_stat100 = new BitSet(new ulong[]{0x1CCD0UL}); 824 public static readonly BitSet _expr_in_stat102 = new BitSet(new ulong[]{0x8UL}); 825 public static readonly BitSet _FUNC_in_stat128 = new BitSet(new ulong[]{0x4UL}); 826 public static readonly BitSet _16_in_expr172 = new BitSet(new ulong[]{0x4UL}); 827 public static readonly BitSet _expr_in_expr176 = new BitSet(new ulong[]{0x1CCD0UL}); 828 public static readonly BitSet _expr_in_expr180 = new BitSet(new ulong[]{0x8UL}); 829 public static readonly BitSet _10_in_expr200 = new BitSet(new ulong[]{0x4UL}); [all …]
|
D | ProfileGrammarParser.cs | 1524 public static readonly BitSet _stat_in_prog53 = new BitSet(new ulong[]{0x11C2UL}); 1525 public static readonly BitSet _expr_in_stat70 = new BitSet(new ulong[]{0x100UL}); 1526 public static readonly BitSet _NEWLINE_in_stat72 = new BitSet(new ulong[]{0x2UL}); 1527 public static readonly BitSet _ID_in_stat105 = new BitSet(new ulong[]{0x20000UL}); 1528 public static readonly BitSet _17_in_stat107 = new BitSet(new ulong[]{0x10C0UL}); 1529 public static readonly BitSet _expr_in_stat109 = new BitSet(new ulong[]{0x100UL}); 1530 public static readonly BitSet _NEWLINE_in_stat111 = new BitSet(new ulong[]{0x2UL}); 1531 public static readonly BitSet _func_in_stat143 = new BitSet(new ulong[]{0x100UL}); 1532 public static readonly BitSet _NEWLINE_in_stat145 = new BitSet(new ulong[]{0x2UL}); 1533 public static readonly BitSet _NEWLINE_in_stat178 = new BitSet(new ulong[]{0x2UL}); [all …]
|
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/ |
D | BitSet.java | 32 /**A stripped-down version of org.antlr.misc.BitSet that is just 36 public class BitSet implements Cloneable { class 50 /** Construct a bitset of size one word (64 bits) */ 51 public BitSet() { in BitSet() method in BitSet 56 public BitSet(long[] bits_) { in BitSet() method in BitSet 61 public BitSet(List<Integer> items) { in BitSet() method in BitSet 69 /** Construct a bitset given the size 70 * @param nbits The size of the bitset in bits 72 public BitSet(int nbits) { in BitSet() method in BitSet 76 public static BitSet of(int el) { in of() [all …]
|
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
D | BitSet.cs | 43 * A stripped-down version of org.antlr.misc.BitSet that is just 49 public sealed class BitSet : ICloneable { class 65 /** <summary>Construct a bitset of size one word (64 bits)</summary> */ 66 public BitSet() in BitSet() method in Antlr.Runtime.BitSet 71 public BitSet(ulong[] bits) { in BitSet() method in Antlr.Runtime.BitSet 76 public BitSet(IEnumerable<int> items) in BitSet() method in Antlr.Runtime.BitSet 82 /** <summary>Construct a bitset given the size</summary> 83 * <param name="nbits">The size of the bitset in bits</param> 85 public BitSet(int nbits) { in BitSet() method in Antlr.Runtime.BitSet 89 public static BitSet Of(int el) { in Of() [all …]
|
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/ |
D | BitSet.cs | 44 * A stripped-down version of org.antlr.misc.BitSet that is just 50 public sealed class BitSet : ICloneable class 67 /** <summary>Construct a bitset of size one word (64 bits)</summary> */ 68 public BitSet() in BitSet() method in Antlr.Runtime.BitSet 75 public BitSet( ulong[] bits ) in BitSet() method in Antlr.Runtime.BitSet 81 public BitSet( IEnumerable<int> items ) in BitSet() method in Antlr.Runtime.BitSet 88 /** <summary>Construct a bitset given the size</summary> 89 * <param name="nbits">The size of the bitset in bits</param> 91 public BitSet( int nbits ) in BitSet() method in Antlr.Runtime.BitSet 96 public static BitSet Of( int el ) in Of() [all …]
|
/external/guava/guava-tests/benchmark/com/google/common/base/ |
D | WhitespaceMatcherBenchmark.java | 25 import java.util.BitSet; 63 BitSet bitSet = new BitSet(); in setUp() local 65 bitSet.set(OLD_WHITESPACE_TABLE.charAt(i)); in setUp() 67 bitSet.clear(0); in setUp() 68 bitSet.clear(1); in setUp() 70 teststring = newTestString(new Random(1), bitSet, percentMatching); in setUp() 93 private static String allMatchingChars(BitSet bitSet) { in allMatchingChars() argument 94 final char[] result = new char[bitSet.cardinality()]; in allMatchingChars() 95 for (int j = 0, c = bitSet.nextSetBit(0); j < result.length; ++j) { in allMatchingChars() 97 c = bitSet.nextSetBit(c + 1); in allMatchingChars() [all …]
|
/external/v8/src/compiler/ |
D | types.h | 98 // Values for bitset types 228 // Bitset types (internal). 232 typedef uint32_t bitset; // Internal typedef 241 static bitset SignedSmall(); 242 static bitset UnsignedSmall(); 244 static bool IsNone(bitset bits) { return bits == kNone; } in IsNone() 246 static bool Is(bitset bits1, bitset bits2) { in Is() 250 static double Min(bitset); 251 static double Max(bitset); 253 static bitset Glb(double min, double max); [all …]
|
/external/python/cpython2/Parser/ |
D | bitset.c | 2 /* Bitset primitives used by the parser generator */ 5 #include "bitset.h" 7 bitset 11 bitset ss = (char *)PyObject_MALLOC(sizeof(BYTE) * nbytes); in newbitset() 14 Py_FatalError("no mem for bitset"); in newbitset() 23 delbitset(bitset ss) in delbitset() 29 addbit(bitset ss, int ibit) in addbit() 42 testbit(bitset ss, int ibit) 49 samebitset(bitset ss1, bitset ss2, int nbits) in samebitset() 60 mergebitset(bitset ss1, bitset ss2, int nbits) in mergebitset()
|
/external/python/cpython3/Parser/ |
D | bitset.c | 2 /* Bitset primitives used by the parser generator */ 5 #include "bitset.h" 7 bitset 11 bitset ss = (char *)PyObject_MALLOC(sizeof(BYTE) * nbytes); in newbitset() 14 Py_FatalError("no mem for bitset"); in newbitset() 23 delbitset(bitset ss) in delbitset() 29 addbit(bitset ss, int ibit) in addbit() 42 testbit(bitset ss, int ibit) 49 samebitset(bitset ss1, bitset ss2, int nbits) in samebitset() 60 mergebitset(bitset ss1, bitset ss2, int nbits) in mergebitset()
|