Home
last modified time | relevance | path

Searched refs:mask (Results 1 – 25 of 30) sorted by relevance

12

/arkcompiler/runtime_core/libpandabase/tests/
Dregmask_test.cpp24 void CompareWithBitset(RegMask mask, BitsetType base) in CompareWithBitset() argument
26 ASSERT_EQ(mask.Count(), base.count()); in CompareWithBitset()
28 ASSERT_EQ(mask.GetMinRegister(), static_cast<uint32_t>(Ctz(base.to_ulong()))); in CompareWithBitset()
29 …ASSERT_EQ(mask.GetMaxRegister(), base.size() - Clz(static_cast<RegMask::ValueType>(base.to_ulong()… in CompareWithBitset()
31 ASSERT_EQ(mask.Size(), base.size()); in CompareWithBitset()
32 ASSERT_EQ(mask.Any(), base.any()); in CompareWithBitset()
33 ASSERT_EQ(mask.None(), base.none()); in CompareWithBitset()
35 ASSERT_EQ(mask.Test(i), base.test(i)); in CompareWithBitset()
36 ASSERT_EQ(mask[i], base[i]); in CompareWithBitset()
42 RegMask mask(value); in TestRegMask() local
[all …]
Dbit_memory_region_test.cpp40 uint32_t mask = 0; in TEST() local
65 uint32_t mask = 0; in TEST() local
67 const uint32_t value = 0xBADDCAFE & mask; in TEST()
80 mask = (mask << 1) | 1; in TEST()
Darena_allocator_test.cpp84 size_t mask = GetAlignmentInBytes(align) - 1; in AllocateWithAlignment() local
97 …ASSERT_EQ(reinterpret_cast<size_t>(arr[i]) & mask, 0U) << "value of i: " << i << ", align: " << al… in AllocateWithAlignment()
124 size_t mask = GetAlignmentInBytes(static_cast<Alignment>(align)) - 1; in AllocateWithDiffAlignment() local
127 …ASSERT_EQ(reinterpret_cast<size_t>(arr[i]) & mask, 0U) << "value of i: " << i << ", align: " << al… in AllocateWithDiffAlignment()
451 size_t mask = GetAlignmentInBytes(align) - 1; variable
454 ASSERT_EQ(reinterpret_cast<size_t>(ptr) & mask, 0U)
468 size_t mask = GetAlignmentInBytes(align) - 1; variable
471 ASSERT_EQ(reinterpret_cast<size_t>(ptr) & mask, 0U)
Dbit_table_test.cpp373 uint64_t mask = (i == 64) ? std::numeric_limits<uint64_t>::max() : ((1ULL << i) - 1); in TEST_F() local
374 uint64_t value = pattern & mask; in TEST_F()
/arkcompiler/ets_runtime/ecmascript/mem/
Dgc_bitset.h81 GCBitsetWord mask = 0; in SetAllBits() local
83 words[i] = ~mask; in SetAllBits()
189 bool ClearWord(uint32_t index, uint32_t mask);
192 bool ClearWord<AccessType::NON_ATOMIC>(uint32_t index, uint32_t mask)
194 if ((Words()[index] & mask) == 0) {
197 Words()[index] &= ~mask;
202 bool ClearWord<AccessType::ATOMIC>(uint32_t index, uint32_t mask)
207 if ((oldValue & mask) == 0) {
210 … } while (!word->compare_exchange_weak(oldValue, oldValue & (~mask), std::memory_order_seq_cst));
219 GCBitsetWord mask = Mask(IndexInWord(offset)); variable
[all …]
/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/
Dlocation_mask.h34 void Init(const T &mask) in Init() argument
36 usage_.resize(mask.size()); in Init()
37 mask_.resize(mask.size()); in Init()
38 for (size_t idx = 0; idx < mask.size(); idx++) { in Init()
39 if (mask.test(idx)) { in Init()
Dreg_alloc_base.cpp183 auto &mask = sf.GetSrc().IsFpRegister() ? vregs_mask_ : regs_mask_; in SetPreassignedRegisters() local
184 if (GetGraph()->GetArch() != Arch::AARCH32 || !mask.IsSet(sf.SrcValue())) { in SetPreassignedRegisters()
Dreg_alloc_graph_coloring.cpp364 auto mask = is_fp ? GetVRegMask() : GetRegMask(); in InitWorkingRanges() local
365 if (mask.IsSet(interval->GetReg())) { in InitWorkingRanges()
/arkcompiler/ets_runtime/tools/circuit_viewer/src/engine/graphics/
DXTexture.js225 let mask = 0;
226 for (let i = 0; i < useHeight; i++) mask |= 1 << i;
231 if ((this.textImgs[k].mask & (mask << i)) === 0) {
243 this.textImgs[rid] = { mask: 0 }; property
247 this.textImgs[rid]['mask'] |= mask << off;
248 this.textIdxs[textIdx] = { cid: cid, rid: rid, mask: mask << off, time: this.timenow(), }; property
261 this.textImgs[this.textIdxs[idx].rid].mask &= ~this.textIdxs[idx].mask;
/arkcompiler/ets_runtime/tools/circuit_viewer/src/ir/
DIrToPicture.js58 let mask = NODE_TYPE_MASK.NONE;
60 mask |= NODE_TYPE_MASK.CONTROL;
63 mask |= NODE_TYPE_MASK.CONTROL;
66 mask |= NODE_TYPE_MASK.DEPEND;
69 mask |= NODE_TYPE_MASK.VALUE;
72 mask |= NODE_TYPE_MASK.FRAMESTATE;
75 mask |= NODE_TYPE_MASK.ROOT;
77 if (mask === NODE_TYPE_MASK.NONE) {
78 mask = NODE_TYPE_MASK.OTHER;
80 return mask;
[all …]
DIrViewer.js150 if (type === 0 && (n1.mask & this.mask_) !== 0 && this.selectPoint_.indexOf(id2) >= 0) {//选中前继
154 if (type === 1 && (n2.mask & this.mask_) !== 0 && this.selectPoint_.indexOf(id1) >= 0) {//选中后继
244 n.hide = (n.mask & this.mask_) === 0;
253 if ((this.mask_ & (1 << i) !== 0) && (n.mask & (1 << i) !== 0)) {//进入点也加进来
/arkcompiler/runtime_core/docs/
Dcode_metainfo.md32 | | | VRegs mask |
106 | CALLEE_REG_MASK | Specifies registers mask that is saved in the method |
107 | CALLEE_FP_REG_MASK | Specifies fp registers mask that is saved in the method |
108 | TABLE_MASK | Bit mask of existing bit tables |
156 This is a Bitmap table, where column is a bit mask, that determines which CPU register holds a mana…
160 This is a Bitmap table, where column is a bit mask, that determines which stack slot holds a manage…
166 ### 6. VRegs mask
168 This is a Bitmap table, where column is a bit mask, that determines which virtual register is modif…
/arkcompiler/runtime_core/compiler/tests/
Dcode_info_test.cpp149 std::bitset<vregs.size()> mask(0); in TEST_F() local
150 code_info.EnumerateStaticRoots(stack_map, [&mask, &vregs](auto vreg) -> bool { in TEST_F()
153 ASSERT(std::distance(vregs.begin(), it) < helpers::ToSigned(mask.size())); in TEST_F()
154 mask.set(std::distance(vregs.begin(), it)); in TEST_F()
158 ASSERT_EQ(Popcount(mask.to_ullong()), 2); in TEST_F()
159 ASSERT_TRUE(mask.test(1)); in TEST_F()
160 ASSERT_TRUE(mask.test(2)); in TEST_F()
/arkcompiler/runtime_core/libpandafile/
Dbytecode_instruction-inl.h34 S mask = static_cast<S>(ReadByte(byteoffset + i)) << (i * BYTE_WIDTH); in ReadHelper() local
35 v |= mask; in ReadHelper()
/arkcompiler/ets_runtime/ecmascript/jspandafile/bytecode_inst/
Dinstruction.h91 S mask = static_cast<S>(ReadByte(byteoffset + i)) << (i * BYTE_WIDTH); in ReadHelper() local
92 v |= mask; in ReadHelper()
/arkcompiler/runtime_core/libpandabase/utils/
Dbit_memory_region.h210 …uint32_t mask = (std::numeric_limits<uint32_t>::max()) >> ((std::numeric_limits<uint32_t>::digits)… in Write() local
214 data_[index] &= ~(mask << shift); in Write()
220 data_[index + i] &= ~(mask >> end_bits); in Write()
Dregmask.h295 inline std::ostream &operator<<(std::ostream &stream, const RegMask &mask)
297 mask.Dump(stream);
Dbit_utils.h165 constexpr T SwapBits(T value, T mask, uint32_t offset) in SwapBits() argument
167 return ((value >> offset) & mask) | ((value & mask) << offset); in SwapBits()
Dbit_vector.h44 BitReference(WordType *data, WordType mask) : data_(data), mask_(mask) in BitReference() argument
46 ASSERT(Popcount(mask) == 1); in BitReference()
/arkcompiler/toolchain/websocket/test/
Dwebsocket_test.cpp230 uint32_t mask = 1; in ClientSendReq() local
234 sendBuf[1] = msgLen | (mask << 7); // 7: mask need shift left by 7 bits in ClientSendReq()
237 …sendBuf[1] = 126 | (mask << 7); // 126: payloadLen according to the spec; 7: mask shift left by 7 … in ClientSendReq()
242 …sendBuf[1] = 127 | (mask << 7); // 127: payloadLen according to the spec; 7: mask shift left by 7 … in ClientSendReq()
/arkcompiler/toolchain/websocket/
Dwebsocket.h30 uint8_t mask = 0; member
Dwebsocket.cpp156 if (wsFrame.mask == 1) { in DecodeMessage()
239 wsFrame.mask = static_cast<uint8_t>((recvbuf[index] >> 7) & 0x1); // 7: to get the mask in Decode()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dstub_builder-inl.h1324 GateRef mask = Int32(1LLU << (ProtoChangeMarker::HAS_CHANGED_BITS - 1)); in GetHasChanged() local
1325 return Int32NotEqual(Int32And(bitfield, mask), Int32(0)); in GetHasChanged()
1474 GateRef mask = Int32LSL( in SetDictionaryOrderFieldInPropAttr() local
1477 GateRef newVal = Int32Or(Int32And(attr, Int32Not(mask)), in SetDictionaryOrderFieldInPropAttr()
1535 GateRef mask = Int32LSL( in SetIsAllTaggedProp() local
1538 GateRef newVal = Int32Or(Int32And(bitfield1, Int32Not(mask)), in SetIsAllTaggedProp()
1578 GateRef mask = Int32LSL( in SetIsProtoTypeToHClass() local
1581 GateRef newVal = Int32Or(Int32And(bitfield, Int32Not(mask)), in SetIsProtoTypeToHClass()
2017 GateRef mask = Int32LSL( in SetOffsetFieldInPropAttr() local
2020 GateRef newVal = Int32Or(Int32And(attr, Int32Not(mask)), in SetOffsetFieldInPropAttr()
[all …]
/arkcompiler/ets_runtime/ecmascript/deoptimizer/
Ddeoptimizer.cpp580 size_t mask = (1 << shift) - 1; in DecodeDeoptDepth() local
582 return id & mask; in DecodeDeoptDepth()
584 return (-id) & mask; in DecodeDeoptDepth()
/arkcompiler/ets_runtime/ecmascript/compiler/assembler/aarch64/
Dassembler_aarch64.cpp39 uint64_t mask = (1ULL << size) - 1; in Create() local
41 if ((imm & mask) != ((imm >> size) & mask)) { in Create()
50 uint64_t mask = ((uint64_t)-1LL) >> (RegXSize - size); in Create() local
51 imm &= mask; in Create()
58 imm |= ~mask; in Create()

12