Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/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 …]
/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 …]
/third_party/skia/third_party/externals/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 …]
/third_party/flutter/skia/third_party/externals/libwebp/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()
Dbit_writer_utils.h90 vp8l_atype_t bits_; // bit accumulator member
140 bw->bits_ |= (vp8l_atype_t)bits << bw->used_; in VP8LPutBits()
/third_party/skia/third_party/externals/libwebp/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()
142 if (br->bits_ < 0) { in VP8GetSigned()
146 const int pos = br->bits_; in VP8GetSigned()
150 br->bits_ -= 1; in VP8GetSigned()
165 if (br->bits_ < 0) { in VP8GetBitAlt()
169 const int pos = br->bits_; in VP8GetBitAlt()
184 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()
Dbit_writer_utils.h90 vp8l_atype_t bits_; // bit accumulator member
140 bw->bits_ |= (vp8l_atype_t)bits << bw->used_; in VP8LPutBits()
/third_party/skia/third_party/externals/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; }
/third_party/skia/third_party/externals/spirv-tools/tools/sva/src/
Dtoken.js42 this.bits_ = 0;
51 get bits() { return this.bits_; }
52 set bits(val) { this.bits_ = val; }
/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; }
/third_party/flutter/skia/third_party/externals/spirv-tools/test/
Dhuffman_codec.cpp55 TestBitReader(const std::string& bits) : bits_(bits) {} in TestBitReader()
58 if (pos_ < bits_.length()) { in ReadBit()
59 *bit = bits_[pos_++] == '0' ? false : true; in ReadBit()
66 std::string bits_; member in __anon76b9ce8e0111::TestBitReader
/third_party/skia/third_party/externals/libwebp/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()
/third_party/flutter/skia/third_party/externals/libwebp/src/dsp/
Dlossless.c210 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()
/third_party/vk-gl-cts/external/amber/src/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
/third_party/skia/third_party/externals/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()
/third_party/node/deps/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()
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcConfigListCase.cpp88 SurfaceBitsFmt(deUint32 bits_) : bits(bits_) in SurfaceBitsFmt()
/third_party/mesa3d/src/gtest/include/gtest/internal/
Dgtest-internal.h295 fp.u_.bits_ = bits; in ReinterpretBits()
310 const Bits &bits() const { return u_.bits_; } in bits()
313 Bits exponent_bits() const { return kExponentBitMask & u_.bits_; } in exponent_bits()
316 Bits fraction_bits() const { return kFractionBitMask & u_.bits_; } in fraction_bits()
319 Bits sign_bit() const { return kSignBitMask & u_.bits_; } in sign_bit()
339 return DistanceBetweenSignAndMagnitudeNumbers(u_.bits_, rhs.u_.bits_) in AlmostEquals()
347 Bits bits_; // The bits that represent the number. member

12