Home
last modified time | relevance | path

Searched refs:bitset (Results 1 – 25 of 178) sorted by relevance

12345678

/third_party/skia/third_party/externals/dawn/src/common/
Dityp_bitset.h27 class bitset : private std::bitset<N> {
29 using Base = std::bitset<N>;
33 constexpr bitset(const Base& rhs) : Base(rhs) { in bitset() function
37 constexpr bitset() noexcept : Base() { in bitset() function
40 constexpr bitset(unsigned long long value) noexcept : Base(value) { in bitset() function
61 bool operator==(const bitset& other) const noexcept {
65 bool operator!=(const bitset& other) const noexcept {
69 bitset& operator&=(const bitset& other) noexcept {
70 return static_cast<bitset&>(Base::operator&=(static_cast<const Base&>(other)));
73 bitset& operator|=(const bitset& other) noexcept {
[all …]
DBitSetIterator.h37 BitSetIterator(const std::bitset<N>& bitset);
43 Iterator(const std::bitset<N>& bits);
59 std::bitset<N> mBits;
68 return Iterator(std::bitset<N>(0)); in end()
72 const std::bitset<N> mBits;
76 BitSetIterator<N, T>::BitSetIterator(const std::bitset<N>& bitset) : mBits(bitset) { in BitSetIterator() argument
90 BitSetIterator<N, T>::Iterator::Iterator(const std::bitset<N>& bits) in Iterator()
119 static std::bitset<N> wordMask(std::numeric_limits<uint32_t>::max()); in getNextBit()
135 BitSetIterator<N, uint32_t> IterateBitSet(const std::bitset<N>& bitset) { in IterateBitSet() argument
136 return BitSetIterator<N, uint32_t>(bitset); in IterateBitSet()
DHashUtils.h77 size_t Hash(const std::bitset<N>& value) { in Hash()
80 std::bitset<N> bits = value; in Hash()
93 struct hash<ityp::bitset<Index, N>> {
95 size_t operator()(const ityp::bitset<Index, N>& value) const {
96 return Hash(static_cast<const std::bitset<N>&>(value));
/third_party/mesa3d/src/compiler/isaspec/
Dencode.py89 def __init__(self, bitset, case, name): argument
90 self.bitset = bitset # leaf bitset
94 def fields(self, bitset=None): argument
95 if bitset is None:
96 bitset = self.bitset
100 for case in bitset.cases:
102 expr = bitset.isa.expressions[case.expr]
116 expr = bitset.isa.expressions[field.expr]
124 if bitset.extends is not None:
125 yield from self.fields(isa.bitsets[bitset.extends])
[all …]
Ddecode.c85 const struct isa_bitset *bitset; member
251 push_scope(struct decode_state *state, const struct isa_bitset *bitset, bitmask_t val) in push_scope() argument
255 BITSET_COPY(scope->val.bitset, val.bitset); in push_scope()
256 scope->bitset = bitset; in push_scope()
322 BITSET_AND(m.bitset, val.bitset, bitsets[n]->mask.bitset); in find_bitset()
324 BITSET_COPY(not_dontcare.bitset, bitsets[n]->dontcare.bitset); in find_bitset()
325 BITSET_NOT(not_dontcare.bitset); in find_bitset()
327 BITSET_AND(m.bitset, m.bitset, not_dontcare.bitset); in find_bitset()
329 if (!BITSET_EQUAL(m.bitset, bitsets[n]->match.bitset)) { in find_bitset()
349 BITSET_AND(m.bitset, match->dontcare.bitset, val.bitset); in find_bitset()
[all …]
Disa.py42 def __init__(self, bitset): argument
43 self.match = bitset.match
44 self.dontcare = bitset.dontcare
45 self.mask = bitset.mask
46 self.field_mask = bitset.field_mask;
142 self.isa = case.bitset.isa
144 self.name = case.bitset.name + '#assert' + str(len(case.fields))
149 match, dontcare, mask = extract_pattern(xml, case.bitset.name)
183 def __init__(self, bitset, xml, update_field_mask, expr=None): argument
184 self.bitset = bitset
[all …]
DREADME.rst47 in another bitset.
61 bitset:
65 <bitset name="#instruction" size="64">
69 </bitset>
76 <bitset name="#instruction-cat2" extends="#instruction">
105 </bitset>
108 bitset matches against a given bit pattern. The leaf node's match/mask/
117 <bitset name="#instruction-cat2-1src" extends="#instruction-cat2">
137 </bitset>
139 <bitset name="absneg.f" extends="#instruction-cat2-1src">
[all …]
/third_party/node/deps/v8/src/compiler/
Dtypes.h250 using bitset = uint64_t; // Internal
252 enum : bitset {
259 static bitset SignedSmall();
260 static bitset UnsignedSmall();
262 static bool IsNone(bitset bits) { return bits == kNone; } in IsNone()
264 static bool Is(bitset bits1, bitset bits2) { in Is()
268 static double Min(bitset);
269 static double Max(bitset);
271 static bitset Glb(double min, double max);
272 static bitset Lub(HeapObjectType const& type) { in Lub()
[all …]
Dtypes.cc67 Type bitset = AsUnion()->Get(0); in Min() local
68 if (!bitset.Is(NaN())) min = std::min(min, bitset.Min()); in Min()
85 Type bitset = this->AsUnion()->Get(0); in Max() local
86 if (!bitset.Is(NaN())) max = std::max(max, bitset.Max()); in Max()
98 Type::bitset Type::BitsetGlb() const { in BitsetGlb()
108 bitset glb = BitsetType::Glb(AsRange()->Min(), AsRange()->Max()); in BitsetGlb()
116 Type::bitset Type::BitsetLub() const { in BitsetLub()
122 bitset lub = AsUnion()->Get(0).BitsetLub(); in BitsetLub()
141 Type::bitset BitsetType::Lub(const MapRefLike& map) { in Lub()
384 template Type::bitset BitsetType::Lub<MapRef>(const MapRef& map);
[all …]
/third_party/mesa3d/src/util/tests/
Dbitset_test.cpp27 TEST(bitset, sizes) in TEST() argument
40 TEST(bitset, test_set_clear) in TEST() argument
54 TEST(bitset, test_set_ones) in TEST() argument
70 TEST(bitset, test_basic_range) in TEST() argument
92 TEST(bitset, test_bitset_ffs) in TEST() argument
112 TEST(bitset, test_range_bits) in TEST() argument
154 TEST(bitset, test_and) in TEST() argument
192 TEST(bitset, test_or) in TEST() argument
232 TEST(bitset, test_not) in TEST() argument
256 TEST(bitset, test_shr_zero) in TEST() argument
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DRenderPipeline.h68 const ityp::bitset<VertexAttributeLocation, kMaxVertexAttributes>&
71 const ityp::bitset<VertexBufferSlot, kMaxVertexBuffers>& GetVertexBufferSlotsUsed() const;
72 const ityp::bitset<VertexBufferSlot, kMaxVertexBuffers>&
74 const ityp::bitset<VertexBufferSlot, kMaxVertexBuffers>&
91 ityp::bitset<ColorAttachmentIndex, kMaxColorAttachments> GetColorAttachmentsMask() const;
120 ityp::bitset<VertexAttributeLocation, kMaxVertexAttributes> mAttributeLocationsUsed;
123 ityp::bitset<VertexBufferSlot, kMaxVertexBuffers> mVertexBufferSlotsUsed;
124 ityp::bitset<VertexBufferSlot, kMaxVertexBuffers> mVertexBufferSlotsUsedAsVertexBuffer;
125 ityp::bitset<VertexBufferSlot, kMaxVertexBuffers> mVertexBufferSlotsUsedAsInstanceBuffer;
DAttachmentState.h56 ityp::bitset<ColorAttachmentIndex, kMaxColorAttachments> mColorAttachmentsSet;
69 ityp::bitset<ColorAttachmentIndex, kMaxColorAttachments> GetColorAttachmentsMask() const;
/third_party/mesa3d/docs/drivers/freedreno/
Disaspec.rst47 in another bitset.
61 bitset:
65 <bitset name="#instruction" size="64">
69 </bitset>
76 <bitset name="#instruction-cat2" extends="#instruction">
105 </bitset>
108 bitset matches against a given bit pattern. The leaf node's match/mask/
117 <bitset name="#instruction-cat2-1src" extends="#instruction-cat2">
137 </bitset>
139 <bitset name="absneg.f" extends="#instruction-cat2-1src">
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/
Dpool_urbg_test.cc133 std::bitset<sizeof(result_type) * 8> bitset(a[i] ^ b[i]); in TYPED_TEST() local
134 changed_bits += bitset.count(); in TYPED_TEST()
135 unchanged_bits += bitset.size() - bitset.count(); in TYPED_TEST()
137 std::bitset<sizeof(result_type) * 8> a_set(a[i]); in TYPED_TEST()
138 std::bitset<sizeof(result_type) * 8> b_set(b[i]); in TYPED_TEST()
Dseed_material_test.cc167 std::bitset<sizeof(uint32_t) * 8> bitset(seed_material[i] ^ in TEST() local
169 changed_bits += bitset.count(); in TEST()
192 std::bitset<sizeof(uint32_t) * 8> bitset(seed_material[i] ^ in TEST() local
194 changed_bits += bitset.count(); in TEST()
Dpcg_engine_test.cc76 std::bitset<sizeof(result_type) * 8> bitset(a[i] ^ b[i]); in TYPED_TEST() local
77 changed_bits += bitset.count(); in TYPED_TEST()
78 unchanged_bits += bitset.size() - bitset.count(); in TYPED_TEST()
80 std::bitset<sizeof(result_type) * 8> a_set(a[i]); in TYPED_TEST()
81 std::bitset<sizeof(result_type) * 8> b_set(b[i]); in TYPED_TEST()
Dranden_engine_test.cc78 std::bitset<sizeof(result_type) * 8> bitset(a[i] ^ b[i]); in TYPED_TEST() local
79 changed_bits += bitset.count(); in TYPED_TEST()
80 unchanged_bits += bitset.size() - bitset.count(); in TYPED_TEST()
82 std::bitset<sizeof(result_type) * 8> a_set(a[i]); in TYPED_TEST()
83 std::bitset<sizeof(result_type) * 8> b_set(b[i]); in TYPED_TEST()
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DBitSetIteratorTests.cpp24 std::bitset<40> mStateBits;
63 std::bitset<40> otherBits; in TEST_F()
92 ityp::bitset<TestEnum, kEnumCount> mStateBits;
131 ityp::bitset<TestEnum, kEnumCount> otherBits; in TEST_F()
158 ityp::bitset<IntegerT, 40> mStateBits;
197 ityp::bitset<IntegerT, 40> otherBits; in TEST_F()
/third_party/gptfdisk/
Dattributes.cc95 bool bitset; in ShowAttributes() local
98 bitset = (UINT64_C(1) << bitNum) & attributes; in ShowAttributes()
99 if (bitset) { in ShowAttributes()
100 cout << partNum+1 << ":" << bitNum << ":" << bitset in ShowAttributes()
/third_party/mesa3d/src/freedreno/registers/
Dgen_header.py273 if self.bitset.inline:
274 self.bitset.dump(self.full_name)
278 if self.bitset.inline:
279 self.bitset.dump_pack_struct(self.full_name, not self.array == None, self.bit_size)
361 bitset = self.bitsets[attrs["type"]]
362 if bitset.inline:
363 self.current_bitset = Bitset(attrs["name"], bitset)
366 self.current_bitset = bitset
374 self.current_reg.bitset = self.current_bitset
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DVulkanExtensions.h49 using InstanceExtSet = ityp::bitset<InstanceExt, static_cast<uint32_t>(InstanceExt::EnumCount)>;
108 using DeviceExtSet = ityp::bitset<DeviceExt, static_cast<uint32_t>(DeviceExt::EnumCount)>;
147 using VulkanLayerSet = ityp::bitset<VulkanLayer, static_cast<uint32_t>(VulkanLayer::EnumCount)>;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
DInstructionSelector.h57 class PredicateBitsetImpl : public std::bitset<MaxPredicates> {
62 PredicateBitsetImpl(const std::bitset<MaxPredicates> &B) in PredicateBitsetImpl()
63 : std::bitset<MaxPredicates>(B) {} in PredicateBitsetImpl()
67 std::bitset<MaxPredicates>::set(I); in PredicateBitsetImpl()
/third_party/ltp/testcases/kernel/syscalls/futex/
Dfutextest.h152 struct tst_ts *timeout, u_int32_t bitset, int opflags) in futex_wait_bitset() argument
155 tst_ts_get(timeout), NULL, bitset, opflags); in futex_wait_bitset()
164 u_int32_t bitset, int opflags) in futex_wake_bitset() argument
167 NULL, bitset, opflags); in futex_wake_bitset()
/third_party/node/deps/v8/tools/debug_helper/
Dcompiler-types.cc17 ic::BitsetType::bitset bits = in _v8_debug_helper_BitsetName()
18 static_cast<ic::BitsetType::bitset>(payload ^ 1u); in _v8_debug_helper_BitsetName()
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
DRenderPipelineGL.h36 ityp::bitset<VertexAttributeLocation, kMaxVertexAttributes> GetAttributesUsingVertexBuffer(
55 ityp::bitset<VertexAttributeLocation, kMaxVertexAttributes>,

12345678