Home
last modified time | relevance | path

Searched refs:bitset (Results 1 - 25 of 142) sorted by relevance

123456

/third_party/skia/third_party/externals/dawn/src/common/
H A Dityp_bitset.h24 // ityp::bitset is a helper class that wraps std::bitset with the restriction that
27 class bitset : private std::bitset<N> { class
29 using Base = std::bitset<N>;
33 constexpr bitset(const Base& rhs) : Base(rhs) { in bitset() function in ityp::bitset
37 constexpr bitset() noexcept : Base() { in Base()
40 constexpr bitset(unsigned long long value) noexcept : Base(value) { in Base()
61 bool operator==(const bitset& other) const noexcept {
65 bool operator!=(const bitset
125 IterateBitSet(const bitset& bitset) IterateBitSet() argument
[all...]
H A DBitSetIterator.h22 #include <bitset>
37 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
135 IterateBitSet(const std::bitset<N>& bitset) IterateBitSet() argument
[all...]
H A DHashUtils.h22 #include <bitset>
65 // When _GLIBCXX_DEBUG is enabled libstdc++ wraps containers into debug containers. For bitset this
66 // means what is normally std::bitset is defined as std::__cxx1988::bitset and is replaced by the
67 // debug version of bitset.
68 // When hashing, std::hash<std::bitset> proxies the call to std::hash<std::__cxx1998::bitset> and
69 // fails on clang because the latter tries to access the private _M_getdata member of the bitset.
70 // It looks like it should work because the non-debug bitset declares
72 // friend struct std::hash<bitset> // bitse
[all...]
/third_party/mesa3d/src/compiler/isaspec/
H A Dencode.py31 # from the decode case. (Or put another way, the decoded bitset
34 # In the xml, we can have multiple override cases per bitset,
58 # } else { // maps to the default case in bitset, ie. outside <override/>
64 # in a bitset may be conditional
89 def __init__(self, bitset, case, name):
90 self.bitset = bitset # leaf bitset
94 def fields(self, bitset=None):
95 if bitset i
[all...]
H A Ddecode.c32 #include "util/bitset.h"
44 * The set of leaf node bitsets in the bitset hiearchy which defines all
55 * Decode scope. When parsing a field that is itself a bitset, we push a
56 * new scope to the stack. A nested bitset is allowed to resolve fields
58 * bitsets, where half/fullness is determined by fields outset if bitset
59 * in the instruction containing the bitset.
78 * Current bitset value being decoded
83 * Current bitset.
85 const struct isa_bitset *bitset; member
251 push_scope(struct decode_state *state, const struct isa_bitset *bitset, bitmask_ argument
361 find_field(struct decode_scope *scope, const struct isa_bitset *bitset, const char *name, size_t name_len) find_field() argument
420 find_display(struct decode_scope *scope, const struct isa_bitset *bitset) find_display() argument
678 const struct isa_bitset *bitset = scope->bitset; display() local
[all...]
H A Disa.py42 def __init__(self, bitset):
43 self.match = bitset.match
44 self.dontcare = bitset.dontcare
45 self.mask = bitset.mask
46 self.field_mask = bitset.field_mask;
102 """Class that encapsulates a field defined in a bitset
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)
181 """Class that encapsulates a single bitset cas
[all...]
/third_party/node/deps/v8/src/compiler/
H A Dtypes.h94 // Values for bitset types
250 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);
361 RangeType(BitsetType::bitset bitset, Limits limits) RangeType() argument
577 New(const HeapObjectRef& heap_ref, BitsetType::bitset bitset, Zone* zone) New() argument
[all...]
H A 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()
97 // The largest bitset subsumed by this type.
98 Type::bitset Type::BitsetGlb() const { in BitsetGlb()
108 bitset glb = BitsetType::Glb(AsRange()->Min(), AsRange()->Max()); in BitsetGlb()
115 // The smallest bitset subsumin
499 HeapConstantType(BitsetType::bitset bitset, const HeapObjectRef& heap_ref) HeapConstantType() argument
748 IntersectRangeAndBitset(Type range, Type bitset, Zone* zone) IntersectRangeAndBitset() argument
1109 BitsetType::bitset bitset = BitsetType::Lub(value.GetHeapObjectType()); HeapConstant() local
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DRenderPipeline.h27 #include <bitset>
68 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<VertexBufferSlo
[all...]
H A DAttachmentState.h28 #include <bitset>
56 ityp::bitset<ColorAttachmentIndex, kMaxColorAttachments> mColorAttachmentsSet;
69 ityp::bitset<ColorAttachmentIndex, kMaxColorAttachments> GetColorAttachmentsMask() const;
H A DShaderModule.h32 #include <bitset>
180 ityp::bitset<VertexAttributeLocation, kMaxVertexAttributes> usedVertexInputs;
189 ityp::bitset<ColorAttachmentIndex, kMaxColorAttachments> fragmentOutputsWritten;
199 std::bitset<kMaxInterStageShaderVariables> usedInterStageVariables;
/third_party/mesa3d/src/util/tests/
H A Dbitset_test.cpp25 #include "util/bitset.h"
27 TEST(bitset, sizes) in TEST()
40 TEST(bitset, test_set_clear) in TEST()
54 TEST(bitset, test_set_ones) in TEST()
70 TEST(bitset, test_basic_range) in TEST()
92 TEST(bitset, test_bitset_ffs) in TEST()
112 TEST(bitset, test_range_bits) in TEST()
154 TEST(bitset, test_and) in TEST()
192 TEST(bitset, test_or) in TEST()
232 TEST(bitset, test_no
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/
H A Dpool_urbg_test.cc18 #include <bitset>
133 std::bitset<sizeof(result_type) * 8> bitset(a[i] ^ b[i]); in TYPED_TEST()
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()
H A Dseed_material_test.cc17 #include <bitset>
167 std::bitset<sizeof(uint32_t) * 8> bitset(seed_material[i] ^ in TEST()
169 changed_bits += bitset.count(); in TEST()
192 std::bitset<sizeof(uint32_t) * 8> bitset(seed_material[i] ^ in TEST()
194 changed_bits += bitset.count(); in TEST()
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
H A 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/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
H A DInstructionSelector.h23 #include <bitset>
46 /// This is convenient because std::bitset does not have a constructor
57 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/mesa3d/src/freedreno/registers/
H A 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
410 elif name == "bitset"
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
H A DRenderPassCache.h27 #include <bitset>
54 ityp::bitset<ColorAttachmentIndex, kMaxColorAttachments> colorMask;
55 ityp::bitset<ColorAttachmentIndex, kMaxColorAttachments> resolveTargetMask;
H A DVulkanExtensions.h48 // A bitset that is indexed with InstanceExt.
49 using InstanceExtSet = ityp::bitset<InstanceExt, static_cast<uint32_t>(InstanceExt::EnumCount)>;
107 // A bitset that is indexed with DeviceExt.
108 using DeviceExtSet = ityp::bitset<DeviceExt, static_cast<uint32_t>(DeviceExt::EnumCount)>;
146 // A bitset that is indexed with VulkanLayer.
147 using VulkanLayerSet = ityp::bitset<VulkanLayer, static_cast<uint32_t>(VulkanLayer::EnumCount)>;
/third_party/gptfdisk/
H A 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/ltp/testcases/kernel/syscalls/futex/
H A Dfutextest.h106 * futex_wait_bitset() - block on uaddr with bitset
107 * @bitset: bitset to be used with futex_wake_bitset
111 struct tst_ts *timeout, u_int32_t bitset, int opflags) in futex_wait_bitset()
114 tst_ts_get(timeout), NULL, bitset, opflags); in futex_wait_bitset()
118 * futex_wake_bitset() - wake one or more tasks blocked on uaddr with bitset
119 * @bitset: bitset to compare with that used in futex_wait_bitset
123 u_int32_t bitset, int opflags) in futex_wake_bitset()
126 NULL, bitset, opflag in futex_wake_bitset()
110 futex_wait_bitset(enum futex_fn_type fntype, futex_t *uaddr, futex_t val, struct tst_ts *timeout, u_int32_t bitset, int opflags) futex_wait_bitset() argument
122 futex_wake_bitset(enum futex_fn_type fntype, futex_t *uaddr, int nr_wake, u_int32_t bitset, int opflags) futex_wake_bitset() argument
[all...]
/third_party/node/deps/v8/tools/debug_helper/
H A Dcompiler-types.cc13 // Check if payload is a bitset and return the bitset type. in _v8_debug_helper_BitsetName()
17 ic::BitsetType::bitset bits = in _v8_debug_helper_BitsetName()
18 static_cast<ic::BitsetType::bitset>(payload ^ 1u); in _v8_debug_helper_BitsetName()
/third_party/node/deps/v8/src/heap/base/
H A Dactive-system-pages.h8 #include <bitset>
16 // Class implements a bitset of system pages on a heap page.
31 // Replaces the current bitset with the given argument. The new bitset needs
43 using bitset_t = std::bitset<kMaxPages>;
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
H A DCommandAllocatorManager.h24 #include <bitset>
52 std::bitset<kMaxCommandAllocators> mFreeAllocators;
/third_party/skia/third_party/externals/abseil-cpp/absl/hash/
H A Dhash_test.cc18 #include <bitset>
359 EXPECT_TRUE((is_hashable<std::bitset<257>>::value)); in TEST()
362 {std::bitset<2>("00"), std::bitset<2>("01"), std::bitset<2>("10"), in TEST()
363 std::bitset<2>("11")})); in TEST()
365 {std::bitset<5>("10101"), std::bitset<5>("10001"), std::bitset<5>()})); in TEST()
376 {std::bitset<kNumBit in TEST()
[all...]

Completed in 14 milliseconds

123456