Home
last modified time | relevance | path

Searched refs:mBits (Results 1 – 16 of 16) sorted by relevance

/third_party/skia/third_party/externals/angle2/src/common/
Dbitset_utils_unittest.cpp24 T mBits; member in __anon56c30b790111::BitSetTest
35 TypeParam mBits = this->mBits; in TYPED_TEST() local
36 EXPECT_FALSE(mBits.all()); in TYPED_TEST()
37 EXPECT_FALSE(mBits.any()); in TYPED_TEST()
38 EXPECT_TRUE(mBits.none()); in TYPED_TEST()
39 EXPECT_EQ(mBits.count(), 0u); in TYPED_TEST()
42 for (size_t i = 0; i < mBits.size(); ++i) in TYPED_TEST()
44 mBits.set(i); in TYPED_TEST()
46 EXPECT_EQ(mBits.all(), i + 1 == mBits.size()); in TYPED_TEST()
47 EXPECT_TRUE(mBits.any()); in TYPED_TEST()
[all …]
Dbitset_utils.h154 constexpr unsigned long to_ulong() const { return static_cast<unsigned long>(mBits); } in to_ulong()
155 constexpr BitsT bits() const { return mBits; } in bits()
169 BitsT mBits;
173 constexpr BitSetT<N, BitsT, ParamT>::BitSetT() : mBits(0) in BitSetT()
180 constexpr BitSetT<N, BitsT, ParamT>::BitSetT(BitsT value) : mBits(value & Mask(N)) in BitSetT()
184 constexpr BitSetT<N, BitsT, ParamT>::BitSetT(std::initializer_list<ParamT> init) : mBits(0) in BitSetT()
188 mBits |= Bit<BitsT>(element) & Mask(N); in BitSetT()
193 constexpr BitSetT<N, BitsT, ParamT>::BitSetT(const BitSetT &other) : mBits(other.mBits) in BitSetT()
199 mBits = other.mBits;
206 return mBits == other.mBits;
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/common/
Dbitset_utils_unittest.cpp21 BitSet<12> mBits; member in __anond5e468ce0111::BitSetTest
26 EXPECT_FALSE(mBits.all()); in TEST_F()
27 EXPECT_FALSE(mBits.any()); in TEST_F()
28 EXPECT_TRUE(mBits.none()); in TEST_F()
29 EXPECT_EQ(mBits.count(), 0u); in TEST_F()
32 for (size_t i = 0; i < mBits.size(); ++i) in TEST_F()
34 mBits.set(i); in TEST_F()
36 EXPECT_EQ(mBits.all(), i + 1 == mBits.size()); in TEST_F()
37 EXPECT_TRUE(mBits.any()); in TEST_F()
38 EXPECT_FALSE(mBits.none()); in TEST_F()
[all …]
Dbitset_utils.h129 unsigned long to_ulong() const { return static_cast<unsigned long>(mBits); } in to_ulong()
130 BitsT bits() const { return mBits; } in bits()
142 BitsT mBits; variable
167 mBits.reset(index - mOffset); in resetLaterBit()
173 mBits.set(index - mOffset); in setLaterBit()
180 std::bitset<N> mBits; variable
191 : mBits(bitset), mCurrentBit(0), mOffset(0) in Iterator()
193 if (mBits.any()) in Iterator()
206 ASSERT(mBits.any());
207 mBits.set(mCurrentBit - mOffset, 0);
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DCLBitField.h19 BitField() noexcept : mBits(0u) {} in BitField()
20 explicit BitField(cl_bitfield bits) noexcept : mBits(bits) {} in BitField()
24 mBits = bits;
28 bool operator==(cl_bitfield bits) const { return mBits == bits; }
29 bool operator!=(cl_bitfield bits) const { return mBits != bits; }
30 bool operator==(const BitField &other) const { return mBits == other.mBits; }
31 bool operator!=(const BitField &other) const { return mBits != other.mBits; }
33 cl_bitfield get() const { return mBits; } in get()
35 bool isSet(cl_bitfield bits) const { return (mBits & bits) != 0u; } in isSet()
36 bool isSet(const BitField &other) const { return (mBits & other.mBits) != 0u; } in isSet()
[all …]
/third_party/flutter/skia/third_party/externals/dawn/src/common/
DBitSetIterator.h55 std::bitset<N> mBits; variable
61 return Iterator(mBits); in begin()
68 const std::bitset<N> mBits;
72 BitSetIterator<N, T>::BitSetIterator(const std::bitset<N>& bitset) : mBits(bitset) { in BitSetIterator()
76 BitSetIterator<N, T>::BitSetIterator(const BitSetIterator& other) : mBits(other.mBits) { in BitSetIterator()
81 mBits = other.mBits;
87 : mBits(bits), mCurrentBit(0), mOffset(0) { in Iterator()
97 DAWN_ASSERT(mBits.any());
98 mBits.set(mCurrentBit - mOffset, 0);
105 return mOffset == other.mOffset && mBits == other.mBits;
[all …]
/third_party/skia/third_party/externals/dawn/src/common/
DBitSetIterator.h59 std::bitset<N> mBits; variable
65 return Iterator(mBits); in begin()
72 const std::bitset<N> mBits;
76 BitSetIterator<N, T>::BitSetIterator(const std::bitset<N>& bitset) : mBits(bitset) { in BitSetIterator()
80 BitSetIterator<N, T>::BitSetIterator(const BitSetIterator& other) : mBits(other.mBits) { in BitSetIterator()
85 mBits = other.mBits;
91 : mBits(bits), mCurrentBit(0), mOffset(0) { in Iterator()
101 DAWN_ASSERT(mBits.any());
102 mBits.set(mCurrentBit - mOffset, 0);
109 return mOffset == other.mOffset && mBits == other.mBits;
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/tests/perf_tests/
DBitSetIteratorPerf.cpp29 T mBits; member in __anon55c859ee0111::BitSetIteratorPerfTest
39 mBits.flip(); in step()
41 for (size_t bit : mBits) in step()
46 mBits.reset(); in step()
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/
DBitSetIteratorPerf.cpp28 T mBits; member in __anone995ee390111::BitSetIteratorPerfTest
39 mBits.flip(); in step()
41 for (size_t bit : mBits) in step()
46 mBits.reset(); in step()
/third_party/glslang/SPIRV/
DSPVRemapper.h258 static const int mBits = sizeof(bits_t) * 4; variable
260 …d(spv::Id id) const { return id < maxMappedId() && ((mapped[id/mBits] & (1LL<<(id%mBits))) != 0);… in isMapped()
261 void setMapped(spv::Id id) { resizeMapped(id); mapped[id/mBits] |= (1LL<<(id%mBits)); } in setMapped()
262 void resizeMapped(spv::Id id) { if (id >= maxMappedId()) mapped.resize(id/mBits+1, 0); } in resizeMapped()
263 size_t maxMappedId() const { return mapped.size() * mBits; } in maxMappedId()
/third_party/skia/third_party/externals/dng_sdk/source/
Ddng_reference.cpp2246 uint32 mBits) in RefVignette16() argument
2249 const uint32 mRound = 1 << (mBits - 1); in RefVignette16()
2267 s = (s * m + mRound) >> mBits; in RefVignette16()
2304 r = (r * m + mRound) >> mBits; in RefVignette16()
2305 g = (g * m + mRound) >> mBits; in RefVignette16()
2306 b = (b * m + mRound) >> mBits; in RefVignette16()
2351 a = (a * m + mRound) >> mBits; in RefVignette16()
2352 b = (b * m + mRound) >> mBits; in RefVignette16()
2353 c = (c * m + mRound) >> mBits; in RefVignette16()
2354 d = (d * m + mRound) >> mBits; in RefVignette16()
[all …]
Ddng_bottlenecks.h540 uint32 mBits);
553 uint32 mBits);
1648 uint32 mBits) in DoVignette16() argument
1659 mBits); in DoVignette16()
1673 uint32 mBits) in DoVignette32() argument
1684 mBits); in DoVignette32()
Ddng_reference.h492 uint32 mBits);
504 uint32 mBits);
/third_party/vk-gl-cts/framework/common/
DtcuTextureUtil.cpp1336 const int mBits = 9; in packRGB999E5() local
1340 const float maxVal = (float)(((1<<mBits) - 1) * (1<<(eMax-eBias))) / (float)(1<<mBits); in packRGB999E5()
1349 float e = deFloatPow(2.0f, (float)(exps-eBias-mBits)); in packRGB999E5()
1352 if (maxs == (1<<mBits)) in packRGB999E5()
DtcuTexture.cpp543 const int mBits = 9; in unpackRGB999E5() local
551 float e = deFloatPow(2.0f, (float)((int)exp - eBias - mBits)); in unpackRGB999E5()
/third_party/ffmpeg/libavformat/
Dlibmodplug.c205 settings.mBits = 16; in modplug_read_header()