/external/deqp-deps/SPIRV-Tools/source/util/ |
D | bit_vector.cpp | 26 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 <<()
|
D | bit_vector.h | 37 : 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/swiftshader/third_party/SPIRV-Tools/source/util/ |
D | bit_vector.cpp | 26 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 <<()
|
D | bit_vector.h | 37 : 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/ |
D | sanitizer_bitvector.h | 29 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/webp/src/utils/ |
D | bit_reader_inl_utils.h | 100 br->bits_ += BITS; in VP8LoadNewBytes() 112 if (br->bits_ < 0) { in VP8GetBit() 116 const int pos = br->bits_; in VP8GetBit() 129 br->bits_ -= shift; in VP8GetBit() 139 if (br->bits_ < 0) { in VP8GetSigned() 143 const int pos = br->bits_; in VP8GetSigned() 147 br->bits_ -= 1; in VP8GetSigned() 160 if (br->bits_ < 0) { in VP8GetBitAlt() 164 const int pos = br->bits_; in VP8GetBitAlt() 179 br->bits_ -= shift; in VP8GetBitAlt()
|
D | bit_writer_utils.c | 248 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()
|
D | bit_reader_utils.c | 41 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()
|
/external/v8/src/ |
D | bit-vector.h | 314 : it_(target->bits_ == nullptr ? new (zone) BitVector(1, zone) in Iterator() 315 : target->bits_) {} in Iterator() 324 GrowableBitVector() : bits_(nullptr) {} in GrowableBitVector() 326 : bits_(new (zone) BitVector(length, zone)) {} in GrowableBitVector() 330 return bits_->Contains(value); in Contains() 335 bits_->Add(value); in Add() 345 if (bits_ != nullptr) bits_->Clear(); in Clear() 352 return bits_ != nullptr && bits_->length() > value; in InBitsRange() 357 int new_length = bits_ == nullptr ? kInitialLength : bits_->length(); in EnsureCapacity() 360 if (bits_ == nullptr) { in EnsureCapacity() [all …]
|
D | safepoint-table.h | 22 SafepointEntry() : info_(0), bits_(nullptr), trampoline_pc_(-1) {} in SafepointEntry() 25 : info_(info), bits_(bits), trampoline_pc_(trampoline_pc) { in SafepointEntry() 29 bool is_valid() const { return bits_ != nullptr; } in is_valid() 32 return info_ == other.info_ && bits_ == other.bits_; in Equals() 37 bits_ = nullptr; in Reset() 77 return bits_; in bits() 85 uint8_t* bits_; variable
|
D | utils.h | 875 explicit EnumSet(T bits = 0) : bits_(bits) {} in bits_() function 876 bool IsEmpty() const { return bits_ == 0; } in IsEmpty() 877 bool Contains(E element) const { return (bits_ & Mask(element)) != 0; } in Contains() 879 return (bits_ & set.bits_) != 0; in ContainsAnyOf() 881 void Add(E element) { bits_ |= Mask(element); } in Add() 882 void Add(const EnumSet& set) { bits_ |= set.bits_; } in Add() 883 void Remove(E element) { bits_ &= ~Mask(element); } in Remove() 884 void Remove(const EnumSet& set) { bits_ &= ~set.bits_; } in Remove() 885 void RemoveAll() { bits_ = 0; } in RemoveAll() 886 void Intersect(const EnumSet& set) { bits_ &= set.bits_; } in Intersect() [all …]
|
/external/webrtc/webrtc/modules/video_coding/utility/ |
D | vp8_header_parser.cc | 29 br->bits_ += 8; in VP8LoadFinalBytes() 33 br->bits_ += 8; in VP8LoadFinalBytes() 54 br->bits_ += BITS; in VP8LoadNewBytes() 67 br->bits_ = -8; // To load the very first 8bits. in VP8InitBitReader() 75 if (br->bits_ < 0) { in VP8GetBit() 79 const int pos = br->bits_; in VP8GetBit() 94 br->bits_ -= shift; in VP8GetBit()
|
/external/v8/src/compiler/ |
D | persistent-map.h | 203 explicit HashValue(size_t hash) : bits_(static_cast<uint32_t>(hash)) {} 207 return bits_ & (static_cast<decltype(bits_)>(1) << (kHashBits - pos - 1)) 212 bool operator<(HashValue other) const { return bits_ < other.bits_; } 213 bool operator==(HashValue other) const { return bits_ == other.bits_; } 214 bool operator!=(HashValue other) const { return bits_ != other.bits_; } 216 return HashValue(bits_ ^ other.bits_); 221 uint32_t bits_;
|
D | register-allocator.h | 332 return RepresentationField::decode(bits_); in NON_EXPORTED_BASE() 335 int assigned_register() const { return AssignedRegisterField::decode(bits_); } in NON_EXPORTED_BASE() 342 bool spilled() const { return SpilledField::decode(bits_); } in NON_EXPORTED_BASE() 441 void set_spilled(bool value) { bits_ = SpilledField::update(bits_, value); } in NON_EXPORTED_BASE() 456 uint32_t bits_; in NON_EXPORTED_BASE() local 482 bool is_phi() const { return IsPhiField::decode(bits_); } in is_phi() 483 void set_is_phi(bool value) { bits_ = IsPhiField::update(bits_, value); } in set_is_phi() 485 bool is_non_loop_phi() const { return IsNonLoopPhiField::decode(bits_); } in is_non_loop_phi() 487 bits_ = IsNonLoopPhiField::update(bits_, value); in set_is_non_loop_phi() 490 bool has_slot_use() const { return HasSlotUseField::decode(bits_); } in has_slot_use() [all …]
|
/external/webp/src/dsp/ |
D | lossless.c | 210 const int tile_width = 1 << transform->bits_; in GENERATE_PREDICTOR_ADD() 212 const int tiles_per_row = VP8LSubSampleSize(width, transform->bits_); in GENERATE_PREDICTOR_ADD() 214 transform->data_ + (y >> transform->bits_) * tiles_per_row; in GENERATE_PREDICTOR_ADD() 291 const int tile_width = 1 << transform->bits_; in ColorSpaceInverseTransform_C() 295 const int tiles_per_row = VP8LSubSampleSize(width, transform->bits_); in ColorSpaceInverseTransform_C() 298 transform->data_ + (y >> transform->bits_) * tiles_per_row; in ColorSpaceInverseTransform_C() 340 const int bits_per_pixel = 8 >> transform->bits_; \ 344 const int pixels_per_byte = 1 << transform->bits_; \ 395 if (in == out && transform->bits_ > 0) { in VP8LInverseTransform() 403 VP8LSubSampleSize(transform->xsize_, transform->bits_); in VP8LInverseTransform()
|
/external/webrtc/webrtc/p2p/base/ |
D | stun.cc | 645 : StunAttribute(type, SIZE), bits_(value) { in StunUInt32Attribute() 649 : StunAttribute(type, SIZE), bits_(0) { in StunUInt32Attribute() 654 return static_cast<bool>((bits_ >> index) & 0x1); in GetBit() 659 bits_ &= ~(1 << index); in SetBit() 660 bits_ |= value ? (1 << index) : 0; in SetBit() 664 if (length() != SIZE || !buf->ReadUInt32(&bits_)) in Read() 670 buf->WriteUInt32(bits_); in Write() 675 : StunAttribute(type, SIZE), bits_(value) { in StunUInt64Attribute() 679 : StunAttribute(type, SIZE), bits_(0) { in StunUInt64Attribute() 683 if (length() != SIZE || !buf->ReadUInt64(&bits_)) in Read() [all …]
|
D | stun.h | 349 uint32_t value() const { return bits_; } in value() 350 void SetValue(uint32_t bits) { bits_ = bits; } in SetValue() 359 uint32_t bits_; 372 uint64_t value() const { return bits_; } in value() 373 void SetValue(uint64_t bits) { bits_ = bits; } in SetValue() 379 uint64_t bits_;
|
/external/brotli/c/enc/ |
D | block_encoder_inc.h | 20 self->bits_ = BROTLI_ALLOC(m, uint16_t, table_size); in FN() 28 alphabet_size, tree, &self->depths_[ix], &self->bits_[ix], in FN()
|
/external/swiftshader/third_party/SPIRV-Tools/test/ |
D | huffman_codec.cpp | 43 TestBitReader(const std::string& bits) : bits_(bits) {} in TestBitReader() 46 if (pos_ < bits_.length()) { in ReadBit() 47 *bit = bits_[pos_++] == '0' ? false : true; in ReadBit() 54 std::string bits_; member in spvtools::comp::__anon60f004290111::TestBitReader
|
/external/deqp-deps/SPIRV-Tools/test/ |
D | huffman_codec.cpp | 43 TestBitReader(const std::string& bits) : bits_(bits) {} in TestBitReader() 46 if (pos_ < bits_.length()) { in ReadBit() 47 *bit = bits_[pos_++] == '0' ? false : true; in ReadBit() 54 std::string bits_; member in spvtools::comp::__anonebf59d6f0111::TestBitReader
|
/external/google-breakpad/src/testing/gtest/include/gtest/internal/ |
D | gtest-internal.h | 374 fp.u_.bits_ = bits; in ReinterpretBits() 386 const Bits &bits() const { return u_.bits_; } in bits() 389 Bits exponent_bits() const { return kExponentBitMask & u_.bits_; } in exponent_bits() 392 Bits fraction_bits() const { return kFractionBitMask & u_.bits_; } in fraction_bits() 395 Bits sign_bit() const { return kSignBitMask & u_.bits_; } in sign_bit() 415 return DistanceBetweenSignAndMagnitudeNumbers(u_.bits_, rhs.u_.bits_) in AlmostEquals() 423 Bits bits_; // The bits that represent the number. member
|
/external/swiftshader/third_party/LLVM/utils/unittest/googletest/include/gtest/internal/ |
D | gtest-internal.h | 394 fp.u_.bits_ = bits; in ReinterpretBits() 406 const Bits &bits() const { return u_.bits_; } in bits() 409 Bits exponent_bits() const { return kExponentBitMask & u_.bits_; } in exponent_bits() 412 Bits fraction_bits() const { return kFractionBitMask & u_.bits_; } in fraction_bits() 415 Bits sign_bit() const { return kSignBitMask & u_.bits_; } in sign_bit() 435 return DistanceBetweenSignAndMagnitudeNumbers(u_.bits_, rhs.u_.bits_) in AlmostEquals() 443 Bits bits_; // The bits that represent the number. member
|
/external/llvm/utils/unittest/googletest/include/gtest/internal/ |
D | gtest-internal.h | 403 fp.u_.bits_ = bits; in ReinterpretBits() 415 const Bits &bits() const { return u_.bits_; } in bits() 418 Bits exponent_bits() const { return kExponentBitMask & u_.bits_; } in exponent_bits() 421 Bits fraction_bits() const { return kFractionBitMask & u_.bits_; } in fraction_bits() 424 Bits sign_bit() const { return kSignBitMask & u_.bits_; } in sign_bit() 444 return DistanceBetweenSignAndMagnitudeNumbers(u_.bits_, rhs.u_.bits_) in AlmostEquals() 452 Bits bits_; // The bits that represent the number. member
|
/external/mesa3d/src/gtest/include/gtest/internal/ |
D | gtest-internal.h | 319 fp.u_.bits_ = bits; in ReinterpretBits() 334 const Bits &bits() const { return u_.bits_; } in bits() 337 Bits exponent_bits() const { return kExponentBitMask & u_.bits_; } in exponent_bits() 340 Bits fraction_bits() const { return kFractionBitMask & u_.bits_; } in fraction_bits() 343 Bits sign_bit() const { return kSignBitMask & u_.bits_; } in sign_bit() 363 return DistanceBetweenSignAndMagnitudeNumbers(u_.bits_, rhs.u_.bits_) in AlmostEquals() 371 Bits bits_; // The bits that represent the number. member
|
/external/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/googletest/include/gtest/internal/ |
D | gtest-internal.h | 319 fp.u_.bits_ = bits; in ReinterpretBits() 334 const Bits &bits() const { return u_.bits_; } in bits() 337 Bits exponent_bits() const { return kExponentBitMask & u_.bits_; } in exponent_bits() 340 Bits fraction_bits() const { return kFractionBitMask & u_.bits_; } in fraction_bits() 343 Bits sign_bit() const { return kSignBitMask & u_.bits_; } in sign_bit() 363 return DistanceBetweenSignAndMagnitudeNumbers(u_.bits_, rhs.u_.bits_) in AlmostEquals() 371 Bits bits_; // The bits that represent the number. member
|