Home
last modified time | relevance | path

Searched refs:BitWord (Results 1 – 8 of 8) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DBitVector.h75 typedef unsigned long BitWord; typedef
77 enum { BITWORD_SIZE = (unsigned)sizeof(BitWord) * CHAR_BIT };
82 MutableArrayRef<BitWord> Bits; // Actual bits.
91 BitWord *WordRef;
110 *WordRef |= BitWord(1) << BitPos;
112 *WordRef &= ~(BitWord(1) << BitPos);
117 return ((*WordRef) & (BitWord(1) << BitPos)) != 0;
150 Bits = MutableArrayRef<BitWord>(); in BitVector()
156 std::memcpy(Bits.data(), RHS.Bits.data(), Capacity * sizeof(BitWord)); in BitVector()
160 RHS.Bits = MutableArrayRef<BitWord>(); in BitVector()
[all …]
DSparseBitVector.h44 using BitWord = unsigned long;
47 BITWORD_SIZE = sizeof(BitWord) * CHAR_BIT,
55 BitWord Bits[BITWORDS_PER_ELEMENT];
59 memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT); in SparseBitVectorElement()
65 memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT); in SparseBitVectorElement()
83 BitWord word(unsigned Idx) const { in word()
154 BitWord Copy = Bits[WordPos]; in find_next()
175 BitWord old = changed ? 0 : Bits[i]; in unionWith()
202 BitWord old = changed ? 0 : Bits[i]; in intersectWith()
225 BitWord old = changed ? 0 : Bits[i]; in intersectWithComplement()
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DBitVector.h29 typedef unsigned long BitWord; typedef
31 enum { BITWORD_SIZE = (unsigned)sizeof(BitWord) * CHAR_BIT };
36 BitWord *Bits; // Actual bits.
46 BitWord *WordRef;
65 *WordRef |= BitWord(1) << BitPos;
67 *WordRef &= ~(BitWord(1) << BitPos);
72 return ((*WordRef) & (BitWord(1) << BitPos)) != 0;
86 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord)); in Size()
101 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord)); in BitVector()
102 std::memcpy(Bits, RHS.Bits, Capacity * sizeof(BitWord)); in BitVector()
[all …]
/external/llvm/include/llvm/ADT/
DBitVector.h28 typedef unsigned long BitWord; typedef
30 enum { BITWORD_SIZE = (unsigned)sizeof(BitWord) * CHAR_BIT };
35 BitWord *Bits; // Actual bits.
45 BitWord *WordRef;
65 *WordRef |= BitWord(1) << BitPos;
67 *WordRef &= ~(BitWord(1) << BitPos);
72 return ((*WordRef) & (BitWord(1) << BitPos)) != 0;
86 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord)); in Size()
101 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord)); in BitVector()
102 std::memcpy(Bits, RHS.Bits, Capacity * sizeof(BitWord)); in BitVector()
[all …]
DSparseBitVector.h46 typedef unsigned long BitWord; typedef
49 BITWORD_SIZE = sizeof(BitWord) * CHAR_BIT,
57 BitWord Bits[BITWORDS_PER_ELEMENT];
62 memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT);
68 memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT);
86 BitWord word(unsigned Idx) const {
146 BitWord Copy = Bits[WordPos];
167 BitWord old = changed ? 0 : Bits[i];
194 BitWord old = changed ? 0 : Bits[i];
217 BitWord old = changed ? 0 : Bits[i];
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DBitVector.h27 typedef unsigned long BitWord; typedef
29 enum { BITWORD_SIZE = (unsigned)sizeof(BitWord) * CHAR_BIT };
31 BitWord *Bits; // Actual bits.
40 BitWord *WordRef;
81 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord)); in Size()
96 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord)); in BitVector()
97 std::memcpy(Bits, RHS.Bits, Capacity * sizeof(BitWord)); in BitVector()
114 if (sizeof(BitWord) == 4) in count()
116 else if (sizeof(BitWord) == 8) in count()
147 if (sizeof(BitWord) == 4) in find_first()
[all …]
DSparseBitVector.h47 typedef unsigned long BitWord; typedef
49 BITWORD_SIZE = sizeof(BitWord) * CHAR_BIT,
57 BitWord Bits[BITWORDS_PER_ELEMENT];
62 memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT);
68 memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT);
86 BitWord word(unsigned Idx) const {
126 if (sizeof(BitWord) == 4)
128 else if (sizeof(BitWord) == 8)
139 if (sizeof(BitWord) == 4)
141 else if (sizeof(BitWord) == 8)
[all …]
/external/swiftshader/third_party/subzero/src/
DIceBitVector.h248 typedef unsigned long BitWord; typedef
249 using Allocator = AT<BitWord>;
251 enum { BITWORD_SIZE = (unsigned)sizeof(BitWord) * CHAR_BIT };
256 BitWord *Bits; // Actual bits.
275 BitWord *WordRef;
295 *WordRef |= BitWord(1) << BitPos;
297 *WordRef &= ~(BitWord(1) << BitPos);
302 return ((*WordRef) & (BitWord(1) << BitPos)) ? true : false;
333 std::memcpy(Bits, RHS.Bits, Capacity * sizeof(BitWord)); in BitVectorTmpl()
404 BitWord Copy = Bits[WordPos]; in find_next()
[all …]