Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DBitVector.h74 typedef uintptr_t BitWord; typedef
76 enum { BITWORD_SIZE = (unsigned)sizeof(BitWord) * CHAR_BIT };
81 MutableArrayRef<BitWord> Bits; // Actual bits.
90 BitWord *WordRef;
109 *WordRef |= BitWord(1) << BitPos;
111 *WordRef &= ~(BitWord(1) << BitPos);
116 return ((*WordRef) & (BitWord(1) << BitPos)) != 0;
149 Bits = MutableArrayRef<BitWord>(); in BitVector()
155 std::memcpy(Bits.data(), RHS.Bits.data(), Capacity * sizeof(BitWord)); in BitVector()
159 RHS.Bits = MutableArrayRef<BitWord>(); in BitVector()
[all …]
DSparseBitVector.h43 using BitWord = unsigned long;
46 BITWORD_SIZE = sizeof(BitWord) * CHAR_BIT,
54 BitWord Bits[BITWORDS_PER_ELEMENT];
58 memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT); in SparseBitVectorElement()
64 memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT); in SparseBitVectorElement()
82 BitWord word(unsigned Idx) const { in word()
153 BitWord Copy = Bits[WordPos]; in find_next()
174 BitWord old = changed ? 0 : Bits[i]; in unionWith()
201 BitWord old = changed ? 0 : Bits[i]; in intersectWith()
224 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/perfetto/src/trace_processor/containers/
Dbit_vector.h71 words_[global_bit_offset_ / BitWord::kBits] |= in Append()
72 static_cast<uint64_t>(value) << global_bit_offset_ % BitWord::kBits; in Append()
79 PERFETTO_DCHECK(global_bit_offset_ % BitWord::kBits == 0); in AppendWord()
80 PERFETTO_DCHECK(global_bit_offset_ + BitWord::kBits <= size_); in AppendWord()
81 words_[global_bit_offset_ / BitWord::kBits] = word; in AppendWord()
82 global_bit_offset_ += BitWord::kBits; in AppendWord()
106 return complete_words * BitWord::kBits; in BitsInCompleteWordsUntilFull()
114 if (global_bit_offset_ == 0 && size_ < BitWord::kBits) { in BitsUntilWordBoundaryOrFull()
117 uint8_t word_bit_offset = global_bit_offset_ % BitWord::kBits; in BitsUntilWordBoundaryOrFull()
119 (BitWord::kBits - word_bit_offset) % BitWord::kBits); in BitsUntilWordBoundaryOrFull()
[all …]
Dbit_vector.cc127 {Block::kWords - 1, BitWord::kBits - 1}}; in Resize()
311 PERFETTO_DCHECK(cur_index == end_idx || cur_index % BitWord::kBits == 0); in IntersectRange()
312 uint32_t cur_words = cur_index / BitWord::kBits; in IntersectRange()
313 uint32_t full_words = builder.BitsInCompleteWordsUntilFull() / BitWord::kBits; in IntersectRange()
320 cur_index += full_words * BitWord::kBits; in IntersectRange()
Dbit_vector_iterators.h110 bo.word_idx = bit_idx_inside_block / BitVector::BitWord::kBits; in block_offset()
111 bo.bit_idx = bit_idx_inside_block % BitVector::BitWord::kBits; in block_offset()
Dbit_vector_iterators.cc97 BitVector::Block::kWords - 1, BitVector::BitWord::kBits - 1}; in ReadSetBitBatch()
/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 …]