/arkcompiler/runtime_core/libpandabase/tests/ |
H A D | regmask_test.cpp | 24 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())) - 1); 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(valu in TestRegMask() 61 TestDistance(RegMask mask, size_t bit, size_t bits_before, size_t bits_after) TestDistance() argument [all...] |
H A D | bit_memory_region_test.cpp | 40 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()
|
/arkcompiler/runtime_core/static_core/libpandabase/tests/ |
H A D | regmask_test.cpp | 24 void CompareWithBitset(RegMask mask, BitsetType base) in CompareWithBitset() argument 26 ASSERT_EQ(mask.Count(), base.count()); in CompareWithBitset() 28 ASSERT_EQ(mask.GetMinRegister(), Ctz(base.to_ulong())); in CompareWithBitset() 29 ASSERT_EQ(mask.GetMaxRegister(), base.size() - Clz(static_cast<RegMask::ValueType>(base.to_ulong())) - 1L); 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(valu in TestRegMask() 61 TestDistance(RegMask mask, size_t bit, size_t bitsBefore, size_t bitsAfter) TestDistance() argument [all...] |
H A D | bit_memory_region_test.cpp | 42 uint32_t mask = 0; in TEST() local 67 uint32_t mask = 0; in TEST() local 69 const uint32_t value = 0xBADDCAFEU & mask; in TEST() 82 mask = (mask << 1U) | 1U; in TEST()
|
/arkcompiler/runtime_core/static_core/compiler/tests/ |
H A D | live_registers_test.cpp | 58 RegMask mask {}; in TEST_F() 59 tree->VisitIntervals(5, [&mask]([[maybe_unused]] const auto &li) { in TEST_F() 60 ASSERT_EQ(mask.test(li->GetReg()), false); in TEST_F() 61 mask.set(li->GetReg()); in TEST_F() 63 ASSERT_EQ(RegMask {0b1001U}, mask); in TEST_F() 65 mask.reset(); in TEST_F() 66 tree->VisitIntervals(11, [&mask]([[maybe_unused]] const auto &li) { in TEST_F() 67 ASSERT_EQ(mask.test(li->GetReg()), false); in TEST_F() 68 mask.set(li->GetReg()); in TEST_F() 70 ASSERT_EQ(RegMask {}, mask); in TEST_F() [all...] |
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/ |
H A D | chapters.py | 107 def __filter_by_mask(mask: str, files: List[str], extension: str) -> List[str]: 109 if '*' not in mask and not mask.endswith(f".{extension}"): 110 # mask is a folder 111 mask = f'{mask}/*' 112 mask = mask.replace('\\', r'\\') 113 mask = mask [all...] |
/arkcompiler/ets_runtime/ecmascript/mem/ |
H A D | gc_bitset.h | 88 GCBitsetWord mask = 0; in SetAllBits() local 90 words[i] = ~mask; in SetAllBits() 97 bool SetBitRange(uintptr_t offset, uint32_t mask); 205 bool ClearWord(uint32_t index, uint32_t mask); 208 bool ClearWord<AccessType::NON_ATOMIC>(uint32_t index, uint32_t mask) 210 if ((Words()[index] & mask) == 0) { 213 Words()[index] &= ~mask; 218 bool ClearWord<AccessType::ATOMIC>(uint32_t index, uint32_t mask) 224 if ((oldValue & mask) == 0) { 228 std::atomic_compare_exchange_strong_explicit(word, &oldValue, oldValue & (~mask), [all...] |
/arkcompiler/runtime_core/static_core/runtime/mem/gc/ |
H A D | bitmap.cpp | 54 auto mask = GetBitMask(bitOffset); in AtomicTestAndSetBit() local 60 if ((oldWord & mask) != 0) { in AtomicTestAndSetBit() 63 } while (!wordAddr->compare_exchange_weak(oldWord, oldWord | mask, std::memory_order_seq_cst)); in AtomicTestAndSetBit() 72 auto mask = GetBitMask(bitOffset); in AtomicTestAndClearBit() local 78 if ((oldWord & mask) == 0) { in AtomicTestAndClearBit() 81 } while (!wordAddr->compare_exchange_weak(oldWord, oldWord & (~mask), std::memory_order_seq_cst)); in AtomicTestAndClearBit() 90 auto mask = GetBitMask(bitOffset); in AtomicTestBit() local 94 return (word & mask) != 0; in AtomicTestBit()
|
H A D | bitmap.h | 161 auto mask = GetRangeBitMask(0, GetBitIdxWithinWord(end)); in IterateOverSetBitsInRange() local 162 bitmapWord &= mask; in IterateOverSetBitsInRange() 281 auto mask = ~static_cast<BitmapWordType>(0) >> (BITSPERWORD - offsetWithinWord - 1); in FindHighestPrecedingOrSameBit() local 282 auto bitmapWord = GetBitmapWord<ATOMIC>(begin) & mask; in FindHighestPrecedingOrSameBit() 337 * @brief Compute bit mask from bit index. 339 * @return Returns bit mask of bit_offset. 347 * @brief Compute bit mask of range [begin_within_word, end_within_word). 352 * @return Returns bit mask. 383 BitmapWordType mask; 386 mask [all...] |
/arkcompiler/runtime_core/static_core/runtime/entrypoints/ |
H A D | string_index_of.h | 114 uint64_t mask = (static_cast<uint64_t>(character) << BITS_PER_BYTE) | character; in BuildSearchPattern() local 115 mask = (mask << BITS_PER_UINT16) | mask; in BuildSearchPattern() 116 return (mask << BITS_PER_UINT32) | mask; in BuildSearchPattern() 122 uint64_t mask = (static_cast<uint64_t>(character) << BITS_PER_UINT16) | character; in BuildSearchPattern() local 123 return (mask << BITS_PER_UINT32) | mask; in BuildSearchPattern() 149 PandaWideUintT mask in BuildSearchPattern() local [all...] |
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/ |
H A D | registers_description.h | 33 // caller reg mask: 0000111111000111 and 34 // callee reg mask: 1111000000001000 35 // Stack walker requires this mask to be densed, so the decision is to 38 // caller mask is 0000000111111111 and 39 // callee mask is 1111100000000000. 100 void SetRegMask(const RegMask &mask) 102 regMask_ = mask; 105 // Get registers mask which used in codegen, runtime e.t.c 107 // Note that it is a default architecture-specific registers mask. 110 // Get vector registers mask whic [all...] |
/arkcompiler/ets_runtime/tools/circuit_viewer/src/engine/graphics/ |
H A D | XTexture.js | 225 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 }; 247 this.textImgs[rid]['mask'] |= mask << off; 248 this.textIdxs[textIdx] = { cid: cid, rid: rid, mask: mask << off, time: this.timenow(), }; 261 this.textImgs[this.textIdxs[idx].rid].mask [all...] |
/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_symbol.h | 150 uint64_t mask = (1ULL << LITERAL_ID_OFFSET_BIT) - 1; in GetSlotIndex() local 151 return id & mask; in GetSlotIndex() 156 uint64_t mask = (1ULL << LITERAL_ID_BITFIELD_NUM) - 1; in GetLiteralId() local 157 return (id >> LITERAL_ID_OFFSET_BIT) & mask; in GetLiteralId() 162 uint64_t mask = (1ULL << ProfileType::ABC_ID_BITFIELD_NUM) - 1; in GetAbcId() local 163 return (id >> ABC_ID_OFFSET_BIT) & mask; in GetAbcId()
|
/arkcompiler/runtime_core/static_core/irtoc/lang/ |
H A D | regmask.rb | 56 mask = RegMask.new(regmap) 57 mask.set_value(value) 58 mask 62 mask = RegMask.new(regmap) 63 map.data.each { |_, v| mask[v] = true } 64 mask
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | value_numbering.cpp | 38 const size_t mask = entriesLength_ - 1; in VisitGate() local 40 for (size_t i = hash & mask;; i = (i + 1) & mask) { in VisitGate() 93 size_t const mask = entriesLength_ - 1; in Grow() local 100 for (size_t j = HashCode(oldEnrty) & mask;; j = (j + 1) & mask) { in Grow()
|
/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/ |
H A D | location_mask.h | 34 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()
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/regalloc/ |
H A D | location_mask.h | 31 void Init(const T &mask) in Init() argument 33 usage_.resize(mask.size()); in Init() 34 mask_.resize(mask.size()); in Init() 35 for (size_t idx = 0; idx < mask.size(); idx++) { in Init() 36 if (mask.test(idx)) { in Init()
|
/arkcompiler/runtime_core/static_core/irtoc/lang/tests/ |
H A D | regmask_test.rb | 58 mask = RegMask.new(map, :a, :b, :c, :d, :e, :f) 71 assert_equal(RegMask.new(map, :b, :d) + :a + :c + :e + :f, mask) 72 assert_equal(mask - :c - :e - :f, RegMask.new(map, :a, :b, :d)) 76 assert_equal(mask - Regmap.from_hash({a: 1, e: 5}), RegMask.new(map, :b, :c, :d, :f)) 77 assert_equal(mask - map, RegMask.new(map))
|
/arkcompiler/runtime_core/static_core/verification/util/ |
H A D | bit_vector.h | 210 const Word mask = MaskUpToIndex(to - from + 1); in bits() local 214 return ConstBits([this, mask, posFrom, posTo, idxFrom]() -> Word { in bits() 216 return (data_[posFrom] >> idxFrom) & mask; in bits() 219 return data & mask; in bits() 229 const Word mask = MaskUpToIndex(to - from + 1); in bits() local 234 [this, mask, posFrom, posTo, idxFrom]() -> Word { in bits() 236 return (data_[posFrom] >> idxFrom) & mask; in bits() 239 return data & mask; in bits() 241 [this, mask, posFrom, posTo, idxFrom](Word valIncomming) { in bits() 242 const Word val = valIncomming & mask; in bits() [all...] |
/arkcompiler/runtime_core/static_core/runtime/interpreter/ |
H A D | math_helpers.h | 32 size_t mask = std::numeric_limits<UnsignedType>::digits - 1; in operator ()() 33 size_t shift = static_cast<UnsignedType>(y) & mask; in operator ()() 43 size_t mask = std::numeric_limits<UnsignedType>::digits - 1; in operator ()() 44 size_t shift = static_cast<UnsignedType>(y) & mask; in operator ()() 54 size_t mask = std::numeric_limits<UnsignedType>::digits - 1; in operator ()() 55 size_t shift = static_cast<UnsignedType>(y) & mask; in operator ()()
|
/arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/ |
H A D | cpu_affinity.cpp | 45 unsigned long mask = cpuset_; in Count() local 47 while (mask) { in Count() 48 if (mask & 1) { in Count() 51 mask >>= 1; in Count()
|
/arkcompiler/ets_runtime/tools/circuit_viewer/src/ir/ |
H A D | IrToPicture.js | 58 let mask = NodeTypeMask.NONE; 60 mask |= NodeTypeMask.CONTROL; 63 mask |= NodeTypeMask.CONTROL; 66 mask |= NodeTypeMask.DEPEND; 69 mask |= NodeTypeMask.VALUE; 72 mask |= NodeTypeMask.FRAMESTATE; 75 mask |= NodeTypeMask.ROOT; 77 if (mask === NodeTypeMask.NONE) { 78 mask = NodeTypeMask.OTHER; 80 return mask; [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/compiler/ |
H A D | ir_build_intrinsics_ets.cpp | 31 exponent mask is 0xff (8 bits) for floats and 0x7ff (11 bits) for doubles 48 auto mask = GetGraph()->CreateInstAnd(itype, GetPc(bcInst->GetAddress()), shift, FindOrCreateConstant(fpExpMask)); in BuildIsFiniteIntrinsic() local 49 auto cmp = GetGraph()->CreateInstCompare(DataType::BOOL, GetPc(bcInst->GetAddress()), mask, in BuildIsFiniteIntrinsic() 52 AddInstruction(bitcast, shift, mask, cmp); in BuildIsFiniteIntrinsic()
|
/arkcompiler/runtime_core/static_core/runtime/ |
H A D | signal_handler.cpp | 139 sigset_t mask; in InitSignals() local 140 sigfillset(&mask); in InitSignals() 141 sigdelset(&mask, SIGABRT); in InitSignals() 142 sigdelset(&mask, SIGBUS); in InitSignals() 143 sigdelset(&mask, SIGFPE); in InitSignals() 144 sigdelset(&mask, SIGILL); in InitSignals() 145 sigdelset(&mask, SIGSEGV); in InitSignals() 152 mask, in InitSignals() 223 uintptr_t mask = 0x7; in IsInvalidPointer() local 224 return ((addr & mask) ! in IsInvalidPointer() [all...] |
H A D | thread_manager.h | 83 bool SatisfyTheMask(ManagedThread *t, unsigned int mask) const in SatisfyTheMask() 85 if ((mask & static_cast<unsigned int>(EnumerationFlag::ALL)) != 0) { in SatisfyTheMask() 94 // For NONE mask in SatisfyTheMask() 96 if ((mask & static_cast<unsigned int>(EnumerationFlag::MANAGED_CODE_THREAD)) != 0) { in SatisfyTheMask() 98 if ((mask & static_cast<unsigned int>(EnumerationFlag::NON_CORE_THREAD)) != 0) { in SatisfyTheMask() 105 if ((mask & static_cast<unsigned int>(EnumerationFlag::VM_THREAD)) != 0) { in SatisfyTheMask()
|