Searched refs:BitWord (Results 1 – 11 of 11) sorted by relevance
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | BitVector.h | 74 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 …]
|
D | SparseBitVector.h | 43 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/llvm-project/llvm/include/llvm/ADT/ |
D | BitVector.h | 75 typedef uintptr_t 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 …]
|
D | SparseBitVector.h | 43 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/llvm/include/llvm/ADT/ |
D | BitVector.h | 28 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 …]
|
D | SparseBitVector.h | 46 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-subzero/include/llvm/ADT/ |
D | BitVector.h | 29 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/swiftshader/third_party/subzero/src/ |
D | IceBitVector.h | 248 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 …]
|
/external/perfetto/src/trace_processor/containers/ |
D | bit_vector.h | 234 {Block::kWords - 1, BitWord::kBits - 1}}; 368 class BitWord { 532 static constexpr uint32_t kBits = kWords * BitWord::kBits; 626 words_[start.word_idx].Set(start.bit_idx, BitWord::kBits - 1); in Set() 630 words_[i].Set(0, BitWord::kBits - 1); in Set() 644 for (uint32_t i = 0; i < BitWord::kBits; ++i) { in FromFiller() 648 bool res = f(offset_with_bit + j * BitWord::kBits); in FromFiller() 656 std::array<BitWord, kWords> words_{}; 673 BlockOffset{Block::kWords - 1, BitWord::kBits - 1}; in Set() 713 a.block_offset.word_idx = bit_idx_inside_block / BitWord::kBits; in IndexToAddress() [all …]
|
D | bit_vector_iterators.h | 111 bo.word_idx = bit_idx_inside_block / BitVector::BitWord::kBits; in block_offset() 112 bo.bit_idx = bit_idx_inside_block % BitVector::BitWord::kBits; in block_offset()
|
D | bit_vector_iterators.cc | 106 BitVector::Block::kWords - 1, BitVector::BitWord::kBits - 1}; in ReadSetBitBatch()
|