Home
last modified time | relevance | path

Searched refs:bits_ (Results 1 – 25 of 55) sorted by relevance

123

/external/llvm-project/flang/include/flang/Common/
Dconstexpr-bitset.h31 constexpr BitSet(Word b) : bits_{b} {} in BitSet()
46 bits_ &= that.bits_;
50 bits_ &= that.bits_;
54 bits_ ^= that.bits_;
58 bits_ ^= that.bits_;
62 bits_ |= that.bits_;
66 bits_ |= that.bits_;
70 constexpr BitSet operator~() const { return ~bits_; }
72 return bits_ & that.bits_;
74 constexpr BitSet operator&(BitSet &&that) const { return bits_ & that.bits_; }
[all …]
/external/openscreen/util/
Dyet_another_bit_vector.cc32 YetAnotherBitVector::YetAnotherBitVector() : size_(0), bits_{.as_integer = 0} {} in YetAnotherBitVector()
41 delete[] bits_.as_array; in ~YetAnotherBitVector()
46 : size_(other.size_), bits_(other.bits_) { in YetAnotherBitVector()
48 other.bits_.as_integer = 0; in YetAnotherBitVector()
57 delete[] bits_.as_array; in operator =()
60 bits_ = other.bits_; in operator =()
62 other.bits_.as_integer = 0; in operator =()
86 delete[] bits_.as_array; in Resize()
99 uint64_t* const last = &bits_.as_array[last_index]; in SetAll()
100 std::fill(&bits_.as_array[0], last, kAllBitsSet); in SetAll()
[all …]
/external/llvm-project/flang/include/flang/Parser/
Dchar-set.h44 bits_ = static_cast<std::uint64_t>(1) << (c - 32); in SetOfChars()
49 bits_ |= SetOfChars{str[j]}.bits_; in SetOfChars()
57 constexpr bool empty() const { return bits_ == 0; } in empty()
60 return (that.bits_ & ~bits_) == 0; in Has()
63 return SetOfChars{bits_ | that.bits_}; in Union()
66 return SetOfChars{bits_ & that.bits_}; in Intersection()
69 return SetOfChars{bits_ & ~that.bits_}; in Difference()
75 constexpr SetOfChars(std::uint64_t b) : bits_{b} {} in SetOfChars()
76 std::uint64_t bits_{0};
/external/swiftshader/third_party/SPIRV-Tools/source/util/
Dbit_vector.cpp26 for (BitContainer e : bits_) { in ReportDensity()
36 << ", total size (bytes)=" << bits_.size() * sizeof(BitContainer) in ReportDensity()
38 << (double)(bits_.size() * sizeof(BitContainer)) / (double)(count); in ReportDensity()
42 auto this_it = this->bits_.begin(); in Or()
43 auto other_it = other.bits_.begin(); in Or()
46 while (this_it != this->bits_.end() && other_it != other.bits_.end()) { in Or()
56 if (other_it != other.bits_.end()) { in Or()
58 this->bits_.insert(this->bits_.end(), other_it, other.bits_.end()); in Or()
66 for (uint32_t i = 0; i < bv.bits_.size(); ++i) { in operator <<()
67 BitVector::BitContainer b = bv.bits_[i]; in operator <<()
Dbit_vector.h37 : bits_((reserved_size - 1) / kBitContainerSize + 1, 0) {}
44 if (element_index >= bits_.size()) { in Set()
45 bits_.resize(element_index + 1, 0); in Set()
48 BitContainer original = bits_[element_index]; in Set()
54 bits_[element_index] = original | ith_bit; in Set()
64 if (element_index >= bits_.size()) { in Clear()
68 BitContainer original = bits_[element_index]; in Clear()
74 bits_[element_index] = original & (~ith_bit); in Clear()
84 if (element_index >= bits_.size()) { in Get()
88 return (bits_[element_index] & in Get()
[all …]
/external/deqp-deps/SPIRV-Tools/source/util/
Dbit_vector.cpp26 for (BitContainer e : bits_) { in ReportDensity()
36 << ", total size (bytes)=" << bits_.size() * sizeof(BitContainer) in ReportDensity()
38 << (double)(bits_.size() * sizeof(BitContainer)) / (double)(count); in ReportDensity()
42 auto this_it = this->bits_.begin(); in Or()
43 auto other_it = other.bits_.begin(); in Or()
46 while (this_it != this->bits_.end() && other_it != other.bits_.end()) { in Or()
56 if (other_it != other.bits_.end()) { in Or()
58 this->bits_.insert(this->bits_.end(), other_it, other.bits_.end()); in Or()
66 for (uint32_t i = 0; i < bv.bits_.size(); ++i) { in operator <<()
67 BitVector::BitContainer b = bv.bits_[i]; in operator <<()
Dbit_vector.h37 : bits_((reserved_size - 1) / kBitContainerSize + 1, 0) {}
44 if (element_index >= bits_.size()) { in Set()
45 bits_.resize(element_index + 1, 0); in Set()
48 BitContainer original = bits_[element_index]; in Set()
54 bits_[element_index] = original | ith_bit; in Set()
64 if (element_index >= bits_.size()) { in Clear()
68 BitContainer original = bits_[element_index]; in Clear()
74 bits_[element_index] = original & (~ith_bit); in Clear()
84 if (element_index >= bits_.size()) { in Get()
88 return (bits_[element_index] & in Get()
[all …]
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/util/
Dbit_vector.cpp26 for (BitContainer e : bits_) { in ReportDensity()
36 << ", total size (bytes)=" << bits_.size() * sizeof(BitContainer) in ReportDensity()
38 << (double)(bits_.size() * sizeof(BitContainer)) / (double)(count); in ReportDensity()
42 auto this_it = this->bits_.begin(); in Or()
43 auto other_it = other.bits_.begin(); in Or()
46 while (this_it != this->bits_.end() && other_it != other.bits_.end()) { in Or()
56 if (other_it != other.bits_.end()) { in Or()
58 this->bits_.insert(this->bits_.end(), other_it, other.bits_.end()); in Or()
66 for (uint32_t i = 0; i < bv.bits_.size(); ++i) { in operator <<()
67 BitVector::BitContainer b = bv.bits_[i]; in operator <<()
Dbit_vector.h37 : bits_((reserved_size - 1) / kBitContainerSize + 1, 0) {}
44 if (element_index >= bits_.size()) { in Set()
45 bits_.resize(element_index + 1, 0); in Set()
48 BitContainer original = bits_[element_index]; in Set()
54 bits_[element_index] = original | ith_bit; in Set()
64 if (element_index >= bits_.size()) { in Clear()
68 BitContainer original = bits_[element_index]; in Clear()
74 bits_[element_index] = original & (~ith_bit); in Clear()
84 if (element_index >= bits_.size()) { in Get()
88 return (bits_[element_index] & in Get()
[all …]
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_bitvector.h29 void clear() { bits_ = 0; } in clear()
30 void setAll() { bits_ = ~(basic_int_t)0; } in setAll()
31 bool empty() const { return bits_ == 0; } in empty()
35 basic_int_t old = bits_; in setBit()
36 bits_ |= mask(idx); in setBit()
37 return bits_ != old; in setBit()
42 basic_int_t old = bits_; in clearBit()
43 bits_ &= ~mask(idx); in clearBit()
44 return bits_ != old; in clearBit()
47 bool getBit(uptr idx) const { return (bits_ & mask(idx)) != 0; } in getBit()
[all …]
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_bitvector.h28 void clear() { bits_ = 0; } in clear()
29 void setAll() { bits_ = ~(basic_int_t)0; } in setAll()
30 bool empty() const { return bits_ == 0; } in empty()
34 basic_int_t old = bits_; in setBit()
35 bits_ |= mask(idx); in setBit()
36 return bits_ != old; in setBit()
41 basic_int_t old = bits_; in clearBit()
42 bits_ &= ~mask(idx); in clearBit()
43 return bits_ != old; in clearBit()
46 bool getBit(uptr idx) const { return (bits_ & mask(idx)) != 0; } in getBit()
[all …]
/external/webp/src/utils/
Dbit_reader_inl_utils.h100 br->bits_ += BITS; in VP8LoadNewBytes()
113 if (br->bits_ < 0) { in VP8GetBit()
117 const int pos = br->bits_; in VP8GetBit()
130 br->bits_ -= shift; in VP8GetBit()
141 if (br->bits_ < 0) { in VP8GetSigned()
145 const int pos = br->bits_; in VP8GetSigned()
149 br->bits_ -= 1; in VP8GetSigned()
164 if (br->bits_ < 0) { in VP8GetBitAlt()
168 const int pos = br->bits_; in VP8GetBitAlt()
183 br->bits_ -= shift; in VP8GetBitAlt()
Dbit_writer_utils.c248 dst->bits_ = src->bits_; in VP8LBitWriterClone()
264 bw->bits_ = bw_init->bits_; in VP8LBitWriterReset()
288 *(vp8l_wtype_t*)bw->cur_ = (vp8l_wtype_t)WSWAP((vp8l_wtype_t)bw->bits_); in VP8LPutBitsFlushBits()
290 bw->bits_ >>= VP8L_WRITER_BITS; in VP8LPutBitsFlushBits()
299 vp8l_atype_t lbits = bw->bits_; in VP8LPutBitsInternal()
329 bw->bits_ = lbits | ((vp8l_atype_t)bits << used); in VP8LPutBitsInternal()
338 *bw->cur_++ = (uint8_t)bw->bits_; in VP8LBitWriterFinish()
339 bw->bits_ >>= 8; in VP8LBitWriterFinish()
Dbit_reader_utils.c41 br->bits_ = -8; // to load the very first 8bits in VP8InitBitReader()
91 br->bits_ += 8; in VP8LoadFinalBytes()
95 br->bits_ += 8; in VP8LoadFinalBytes()
98 br->bits_ = 0; // This is to avoid undefined behaviour with shifts. in VP8LoadFinalBytes()
277 pos = (int)(br->buf_ - buf_start) * 8 - br->bits_; in BitTrace()
/external/pigweed/pw_log_tokenized/public/pw_log_tokenized/
Dlog_tokenized.h85 constexpr GenericMetadata(T value) : bits_(value) {} in GenericMetadata()
88 constexpr T level() const { return bits_ & Mask<kLevelBits>(); } in level()
92 return (bits_ >> kLevelBits) & Mask<kModuleBits>(); in module()
97 return (bits_ >> (kLevelBits + kModuleBits)) & Mask<kFlagBits>(); in flags()
106 T bits_; variable
108 static_assert(kLevelBits + kModuleBits + kFlagBits <= sizeof(bits_) * 8);
/external/swiftshader/third_party/SPIRV-Tools/tools/sva/src/
Dtoken.js42 this.bits_ = 0;
51 get bits() { return this.bits_; }
52 set bits(val) { this.bits_ = val; }
/external/deqp-deps/SPIRV-Tools/tools/sva/src/
Dtoken.js42 this.bits_ = 0;
51 get bits() { return this.bits_; }
52 set bits(val) { this.bits_ = val; }
/external/angle/third_party/vulkan-deps/spirv-tools/src/tools/sva/src/
Dtoken.js42 this.bits_ = 0;
51 get bits() { return this.bits_; }
52 set bits(val) { this.bits_ = val; }
/external/libgav1/libgav1/src/utils/
Dentropy_decoder.cc597 bits_ = kWindowSize - 15; in DaalaBitReader()
601 bits_ = -15; in DaalaBitReader()
613 const auto symbol_value = static_cast<uint16_t>(window_diff_ >> bits_); in ReadBit()
617 window_diff_ -= static_cast<WindowSize>(curr) << bits_; in ReadBit()
731 const auto symbol_value = static_cast<uint16_t>(window_diff_ >> bits_); in ReadSymbolImpl()
742 window_diff_ -= static_cast<WindowSize>(curr) << bits_; in ReadSymbolImpl()
752 const auto symbol_value = static_cast<uint16_t>(window_diff_ >> bits_); in ReadSymbolImplBinarySearch()
785 window_diff_ -= static_cast<WindowSize>(curr) << bits_; in ReadSymbolImplBinarySearch()
791 const auto symbol_value = static_cast<uint16_t>(window_diff_ >> bits_); in ReadSymbolImpl()
800 window_diff_ -= static_cast<WindowSize>(curr) << bits_; in ReadSymbolImpl()
[all …]
/external/brotli/c/enc/
Dblock_encoder_inc.h20 self->bits_ = BROTLI_ALLOC(m, uint16_t, table_size); in FN()
28 alphabet_size, tree, &self->depths_[ix], &self->bits_[ix], in FN()
/external/deqp-deps/amber/src/
Dtype.h153 uint32_t NumBits() const { return bits_; } in NumBits()
154 uint32_t SizeInBytes() const override { return bits_ / 8; } in SizeInBytes()
161 return format_mode_ == n->format_mode_ && bits_ == n->bits_; in Equal()
168 uint32_t bits_ = 32; variable
/external/webp/src/dsp/
Dlossless.c215 const int tile_width = 1 << transform->bits_; in GENERATE_PREDICTOR_ADD()
217 const int tiles_per_row = VP8LSubSampleSize(width, transform->bits_); in GENERATE_PREDICTOR_ADD()
219 transform->data_ + (y >> transform->bits_) * tiles_per_row; in GENERATE_PREDICTOR_ADD()
296 const int tile_width = 1 << transform->bits_; in ColorSpaceInverseTransform_C()
300 const int tiles_per_row = VP8LSubSampleSize(width, transform->bits_); in ColorSpaceInverseTransform_C()
303 transform->data_ + (y >> transform->bits_) * tiles_per_row; in ColorSpaceInverseTransform_C()
345 const int bits_per_pixel = 8 >> transform->bits_; \
349 const int pixels_per_byte = 1 << transform->bits_; \
400 if (in == out && transform->bits_ > 0) { in VP8LInverseTransform()
408 VP8LSubSampleSize(transform->xsize_, transform->bits_); in VP8LInverseTransform()
/external/libchrome/base/task_scheduler/
Dtask_tracker.cc141 subtle::NoBarrier_AtomicIncrement(&bits_, kShutdownHasStartedMask); in StartShutdown()
154 return subtle::NoBarrier_Load(&bits_) & kShutdownHasStartedMask; in HasShutdownStarted()
160 subtle::NoBarrier_Load(&bits_) >> kNumTasksBlockingShutdownBitOffset; in AreTasksBlockingShutdown()
171 subtle::NoBarrier_Load(&bits_) >> kNumTasksBlockingShutdownBitOffset; in IncrementNumTasksBlockingShutdown()
178 &bits_, kNumTasksBlockingShutdownIncrement); in IncrementNumTasksBlockingShutdown()
186 &bits_, -kNumTasksBlockingShutdownIncrement); in DecrementNumTasksBlockingShutdown()
211 subtle::Atomic32 bits_ = 0; member in base::internal::TaskTracker::State
/external/webrtc/modules/video_coding/utility/
Dvp8_header_parser.cc37 br->bits_ = 0; in VP8InitBitReader()
69 if (++br->bits_ == 8) { in Vp8BitReaderGetBool()
70 br->bits_ = 0; in Vp8BitReaderGetBool()
/external/webrtc/api/transport/
Dstun.h410 uint32_t value() const { return bits_; } in value()
411 void SetValue(uint32_t bits) { bits_ = bits; } in SetValue()
420 uint32_t bits_;
431 uint64_t value() const { return bits_; } in value()
432 void SetValue(uint64_t bits) { bits_ = bits; } in SetValue()
438 uint64_t bits_;

123