Home
last modified time | relevance | path

Searched refs:static_cast (Results 1 - 25 of 663) sorted by relevance

12345678910>>...27

/arkcompiler/ets_frontend/es2panda/util/
H A Denumbitops.h26 return static_cast<T>(~static_cast<utype>(a)); \
33 return (!static_cast<utype>(a)); \
40 return static_cast<T>(static_cast<utype>(a) | static_cast<utype>(b)); \
47 return static_cast<utype>(static_cast<utype>(a) & static_cast<utype>(b)); \
54 return static_cast<
[all...]
H A Dustring.h150 return static_cast<size_t>(iter_ - sv_.begin()); in Index()
337 char32_t cu0 = static_cast<uint8_t>(*iterNext++); in DecodeCP()
347 char32_t cu1 = static_cast<uint8_t>(*iterNext++); in DecodeCP()
354 char32_t cu1 = static_cast<uint8_t>(*iterNext++); in DecodeCP()
355 char32_t cu2 = static_cast<uint8_t>(*iterNext++); in DecodeCP()
364 char32_t cu1 = static_cast<uint8_t>(*iterNext++); in DecodeCP()
365 char32_t cu2 = static_cast<uint8_t>(*iterNext++); in DecodeCP()
366 char32_t cu3 = static_cast<uint8_t>(*iterNext++); in DecodeCP()
448 str->push_back(static_cast<char>(cu)); in Utf8Encode()
450 str->push_back(static_cast<cha in Utf8Encode()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/
H A Daarch64_imm_valid.h27 uint64 mask2 = (1UL << static_cast<uint64>(nLowerZeroBits)) - 1UL; in IsBitSizeImmediate()
28 return (mask2 & val) == 0UL && (mask1 & ((static_cast<uint64>(val)) >> nLowerZeroBits)) == 0UL; in IsBitSizeImmediate()
42 if (((val & ((static_cast<uint64>(0xffff)) << k48BitSize)) == val) || in IsMoveWidableImmediateCopy()
43 ((val & ((static_cast<uint64>(0xffff)) << k32BitSize)) == val)) { in IsMoveWidableImmediateCopy()
48 val &= static_cast<uint64>(0xffffffff); in IsMoveWidableImmediateCopy()
56 return ((val & ((static_cast<uint64>(0xffff)) << k16BitSize)) == val || (val & static_cast<uint64>(0xffff)) == val); in IsMoveWidableImmediateCopy()
68 if ((static_cast<uint64>(value) & 0xffffffff00000000ULL) != 0 && in IsSingleInstructionMovable32()
69 (static_cast<uint64>(value) & 0xffffffff00000000ULL) != 0xffffffff00000000ULL) { in IsSingleInstructionMovable32()
73 return (IsMoveWidableImmediateCopy(static_cast<uint6 in IsSingleInstructionMovable32()
[all...]
H A Daarch64_mop_valid.h26 return (static_cast<MemOperand *>(o)->GetAddrMode() == MemOperand::kAddrModeLo12Li) || in StrLdr8Valid()
28 static_cast<MemOperand *>(o)->IsIntactIndexed()); in StrLdr8Valid()
34 MemOperand *memOpnd = static_cast<MemOperand *>(o); in StrLdr16Valid()
41 return ((symAlign + static_cast<uint64>(AArch64isa::GetMemOpndOffsetValue(o))) & in StrLdr16Valid()
42 static_cast<int64>(k1BitSize)) == static_cast<int64>(k0BitSize); in StrLdr16Valid()
50 MemOperand *memOpnd = static_cast<MemOperand *>(o); in StrLdr32Valid()
57 return ((symAlign + static_cast<uint64>(AArch64isa::GetMemOpndOffsetValue(o))) & in StrLdr32Valid()
58 static_cast<int64>(k3BitSize)) == static_cast<int6 in StrLdr32Valid()
[all...]
/arkcompiler/ets_runtime/ecmascript/base/
H A Dmath_helper.h32 return static_cast<uint32_t>(panda_bit_utils_ctz(X)); in GetIntLog2()
37 return static_cast<uint64_t>(panda_bit_utils_ctzll(X)); in GetIntLog2()
69 return sizeof(T) == 8 ? __builtin_ctzll(static_cast<uint64_t>(value)) : __builtin_ctz(static_cast<uint32_t>(value)); in WhichPowerOfTwo()
106 uint32_t res = static_cast<uint32_t>(lhs) + static_cast<uint32_t>(rhs); in SignedAddOverflow32()
109 return ((res ^ static_cast<uint32_t>(lhs)) & (res ^ static_cast<uint32_t>(rhs)) & (1U << 31)) != 0; in SignedAddOverflow32()
115 uint32_t res = static_cast<uint32_t>(lhs) - static_cast<uint32_ in SignedSubOverflow32()
[all...]
H A Ddtoa_helper.h67 uint32_t part = static_cast<uint32_t>(accumulator & kMask32); in Multiply()
73 part = static_cast<uint32_t>(accumulator & kMask32); in Multiply()
107 int result = static_cast<int>(high_bits_ >> (power - SHIFT_64BIT)); in DivModPowerOf2()
108 high_bits_ -= static_cast<uint64_t>(result) << (power - SHIFT_64BIT); in DivModPowerOf2()
113 int result = static_cast<int>(part_low + part_high); in DivModPowerOf2()
128 return static_cast<int>((high_bits_ >> (position - SHIFT_64BIT)) & 1); in BitAt()
130 return static_cast<int>((low_bits_ >> position) & 1); in BitAt()
179 int biased_e = static_cast<int>((u.u64 & kDpExponentMask) >> kDpSignificandSize); in DiyFp()
255 (static_cast<uint64_t>(0x7FF00000) << 32) | static_cast<uint64_
[all...]
/arkcompiler/ets_frontend/ets2panda/util/
H A Denumbitops.h44 return static_cast<T>(~static_cast<Utype>(a)); in operator ~()
52 return (!static_cast<Utype>(a)); in operator !()
60 return static_cast<T>(static_cast<Utype>(a) | static_cast<Utype>(b)); in operator |()
68 return static_cast<Utype>(static_cast<Utype>(a) & static_cast<Utype>(b)); in operator &()
76 return static_cast< in operator ^()
[all...]
H A Dustring.h147 return static_cast<size_t>(iter_ - sv_.begin()); in Index()
343 char32_t cu0 = static_cast<uint8_t>(*iterNext++); // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in DecodeCP()
349 char32_t cu1 = static_cast<uint8_t>(*iterNext++); // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in DecodeCP()
352 char32_t cu1 = static_cast<uint8_t>(*iterNext++); // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in DecodeCP()
353 char32_t cu2 = static_cast<uint8_t>(*iterNext++); // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in DecodeCP()
358 char32_t cu1 = static_cast<uint8_t>(*iterNext++); // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in DecodeCP()
359 char32_t cu2 = static_cast<uint8_t>(*iterNext++); // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in DecodeCP()
360 char32_t cu3 = static_cast<uint8_t>(*iterNext++); // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in DecodeCP()
444 str->push_back(static_cast<char>(cu)); in Utf8Encode()
446 str->push_back(static_cast<cha in Utf8Encode()
[all...]
/arkcompiler/runtime_core/static_core/runtime/include/coretypes/
H A Dtagged_value.h102 TAG_OBJECT | TAG_BOOLEAN | TAG_SPECIAL_VALUE | static_cast<TaggedType>(false);
104 TAG_OBJECT | TAG_BOOLEAN | TAG_SPECIAL_VALUE | static_cast<TaggedType>(true);
121 constexpr explicit TaggedValue(int v) : value_((static_cast<TaggedType>(ark::helpers::ToUnsigned(v))) | TAG_INT) {} in TaggedValue()
125 if (static_cast<int32_t>(v) < 0) { in TaggedValue()
126 value_ = TaggedValue(static_cast<double>(v)).GetRawData(); in TaggedValue()
129 value_ = TaggedValue(static_cast<int32_t>(v)).GetRawData(); in TaggedValue()
134 ASSERT(INT32_MIN <= static_cast<int32_t>(bit_cast<int64_t>(v))); in GetIntTaggedValue()
135 ASSERT(static_cast<int32_t>(bit_cast<int64_t>(v)) <= INT32_MAX); in GetIntTaggedValue()
136 return static_cast<uint32_t>(v) | TAG_INT; in GetIntTaggedValue()
147 return (v == 0) ? static_cast<uint64_ in GetBoolTaggedValue()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dtype.h68 type_ = BUILTIN_TYPE | static_cast<uint32_t>(jsType); in ParamType()
72 static ParamType name() { return ParamType(static_cast<uint32_t>(type)); }
79 bool Is##name() const { return type_ == static_cast<uint32_t>(type); }
102 return static_cast<JSType>(type_ & ~BUILTIN_TYPE); in GetBuiltinType()
177 return GateType(static_cast<uint32_t>(TSPrimitiveType::ANY)); in AnyType()
182 return GateType(static_cast<uint32_t>(TSPrimitiveType::NUMBER)); in NumberType()
187 return GateType(static_cast<uint32_t>(TSPrimitiveType::DOUBLE)); in DoubleType()
192 return GateType(static_cast<uint32_t>(TSPrimitiveType::BOOLEAN)); in BooleanType()
197 return GateType(static_cast<uint32_t>(TSPrimitiveType::VOID_TYPE)); in VoidType()
202 return GateType(static_cast<uint32_ in StringType()
[all...]
/arkcompiler/runtime_core/compiler/tests/
H A Dvixl_exec_module.h46 return static_cast<T>(static_cast<bool>(data)); in CutValue()
48 return static_cast<T>(static_cast<uint8_t>(data)); in CutValue()
50 return static_cast<T>(static_cast<int8_t>(data)); in CutValue()
52 return static_cast<T>(static_cast<uint16_t>(data)); in CutValue()
54 return static_cast<T>(static_cast<int16_ in CutValue()
[all...]
/arkcompiler/runtime_core/static_core/libpandabase/utils/
H A Dutils.h28 if (v > static_cast<unsigned long long>(std::numeric_limits<int>::max())) { // NOLINT(google-runtime-int) in _I()
31 return static_cast<int>(v); in _I()
36 if (v < static_cast<long double>(std::numeric_limits<double>::lowest()) || in _D()
37 v > static_cast<long double>(std::numeric_limits<double>::max())) { in _D()
40 return static_cast<double>(v); in _D()
54 if (static_cast<unsigned>(c) < BASE10) { in HexValue()
59 if (static_cast<unsigned>(c) < (BASE16 - BASE10)) { in HexValue()
/arkcompiler/runtime_core/static_core/compiler/tests/
H A Dvixl_exec_module.h46 return static_cast<T>((static_cast<bool>(data))); in CutValue()
48 return static_cast<T>((static_cast<uint8_t>(data))); in CutValue()
50 return static_cast<T>((static_cast<int8_t>(data))); in CutValue()
52 return static_cast<T>((static_cast<uint16_t>(data))); in CutValue()
54 return static_cast<T>((static_cast<int16_ in CutValue()
[all...]
/arkcompiler/runtime_core/libpandafile/
H A Dmodule_data_accessor-inl.h31 auto local_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord()
32 auto import_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord()
33 auto module_request_idx = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint16_t)>(&sp)); in EnumerateModuleRecord()
39 auto local_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord()
40 auto module_request_idx = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint16_t)>(&sp)); in EnumerateModuleRecord()
46 auto local_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord()
47 auto export_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord()
53 auto export_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord()
54 auto import_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord()
55 auto module_request_idx = static_cast<uint32_ in EnumerateModuleRecord()
[all...]
/arkcompiler/ets_runtime/compiler_service/include/
H A Daot_compiler_constants.h185 {static_cast<int>(RetStatusOfCompiler::ERR_OK), {ERR_OK, "AOT compiler success"}},
186 {static_cast<int>(RetStatusOfCompiler::ERR_NO_AP), {ERR_OK_NO_AOT_FILE, "AOT compiler not run: no ap file"}},
187 {static_cast<int>(RetStatusOfCompiler::ERR_CHECK_VERSION),
189 {static_cast<int>(RetStatusOfCompiler::ERR_MERGE_AP),
191 {static_cast<int>(RetStatusOfCompiler::ERR_AN_EMPTY),
193 {static_cast<int>(RetStatusOfCompiler::ERR_AN_FAIL),
195 {static_cast<int>(RetStatusOfCompiler::ERR_AI_FAIL),
/arkcompiler/ets_runtime/ecmascript/
H A Dglobal_env_constants-inl.h27 return &constants_[static_cast<int>(ConstantIndex::CONSTANT_BEGIN)]; in BeginSlot()
32 return &constants_[static_cast<int>(ConstantIndex::CONSTANT_END)]; in EndSlot()
39 constants_[static_cast<int>(index)] = value; in SetConstant()
47 constants_[static_cast<int>(index)] = value.GetTaggedValue(); in SetConstant()
52 return ToUintPtr(this) + sizeof(JSTaggedValue) * static_cast<uint32_t>(index); in GetGlobalConstantAddr()
60 return constants_[static_cast<int>(ConstantIndex::Index)]; \
65 &constants_[static_cast<int>(ConstantIndex::Index)])); \
70 * static_cast<int>(ConstantIndex::Index); \
H A Dframes.h34 static constexpr int64_t BASELINEJIT_PC_FLAG = static_cast<int64_t>(std::numeric_limits<uint64_t>::max());
192 return GetOffset<static_cast<size_t>(Index::TypeIndex)>(isArch32); in GetTypeOffset()
197 return GetOffset<static_cast<size_t>(Index::PrevFpIndex)>(isArch32); in GetPrevOffset()
202 return GetOffset<static_cast<size_t>(Index::ReturnAddrIndex)>(isArch32); in GetReturnAddrOffset()
207 size_t slotOffset = static_cast<size_t>(Index::PrevFpIndex) - static_cast<size_t>(Index::TypeIndex); in ComputeReservedSize()
223 static_assert(static_cast<size_t>(Index::NumOfMembers) == NumOfTypes);
270 return GetOffset<static_cast<size_t>(Index::TypeIndex)>(isArch32); in GetTypeOffset()
275 return GetOffset<static_cast<size_t>(Index::PrevFpIndex)>(isArch32); in GetPrevOffset()
280 return GetOffset<static_cast<size_ in GetReturnAddrOffset()
[all...]
/arkcompiler/runtime_core/static_core/libpandabase/taskmanager/
H A Dtask.h36 constexpr uint8_t TASK_TYPE_NEEDED_BITS = MinimumBitsToStore(static_cast<size_t>(TaskType::UNKNOWN) - 1U);
37 static_assert(ALL_TASK_TYPES.size() == static_cast<size_t>(TaskType::UNKNOWN));
46 constexpr uint8_t VM_TYPE_NEEDED_BITS = MinimumBitsToStore(static_cast<size_t>(VMType::UNKNOWN) - 1U);
47 static_assert(ALL_VM_TYPES.size() == static_cast<size_t>(VMType::UNKNOWN));
56 constexpr uint8_t EXECUTION_MODE_NEEDED_BITS = MinimumBitsToStore(static_cast<size_t>(TaskExecutionMode::UNKNOWN) - 1U);
57 static_assert(ALL_TASK_EXECUTION_MODES.size() == static_cast<size_t>(TaskExecutionMode::UNKNOWN));
119 : val_(GetInternalRepresentation(static_cast<StorageType>(taskType), static_cast<StorageType>(vmType), in TaskProperties()
120 static_cast<StorageType>(executionMode))) in TaskProperties()
126 return static_cast<TaskTyp in GetTaskType()
[all...]
/arkcompiler/runtime_core/bytecode_optimizer/
H A Dtagged_value.h79 TAG_OBJECT | TAG_BOOLEAN | TAG_SPECIAL_VALUE | static_cast<TaggedType>(false);
81 TAG_OBJECT | TAG_BOOLEAN | TAG_SPECIAL_VALUE | static_cast<TaggedType>(true);
96 constexpr explicit TaggedValue(int v) : value_(static_cast<TaggedType>(v) | TAG_INT) {} in TaggedValue()
100 if (static_cast<int32_t>(v) < 0) { in TaggedValue()
101 value_ = TaggedValue(static_cast<double>(v)).GetRawData(); in TaggedValue()
104 value_ = TaggedValue(static_cast<int32_t>(v)).GetRawData(); in TaggedValue()
109 if (UNLIKELY(static_cast<int32_t>(v) != v)) { in TaggedValue()
110 value_ = TaggedValue(static_cast<double>(v)).GetRawData(); in TaggedValue()
113 value_ = TaggedValue(static_cast<int32_t>(v)).GetRawData(); in TaggedValue()
117 : value_(static_cast<TaggedTyp in TaggedValue()
[all...]
/arkcompiler/runtime_core/static_core/libpandafile/
H A Dliteral_data_accessor-inl.h29 static_cast<uint32_t>(helpers::Read<sizeof(uint32_t)>(literalDataSp_.SubSpan(index * ID_SIZE))))); in GetLiteralValsNum()
48 auto tag = static_cast<LiteralTag>(helpers::Read<TAG_SIZE>(&sp)); in EnumerateLiteralVals()
51 value = static_cast<uint64_t>(helpers::Read<sizeof(uint64_t)>(&sp)); in EnumerateLiteralVals()
55 value = static_cast<uint32_t>(helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateLiteralVals()
63 value = static_cast<bool>(helpers::Read<sizeof(uint8_t)>(&sp)); in EnumerateLiteralVals()
71 value = static_cast<uint32_t>(helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateLiteralVals()
78 value = static_cast<uint32_t>(helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateLiteralVals()
82 value = static_cast<uint16_t>(helpers::Read<sizeof(uint16_t)>(&sp)); in EnumerateLiteralVals()
87 value = static_cast<uint8_t>(helpers::Read<sizeof(uint8_t)>(&sp)); in EnumerateLiteralVals()
/arkcompiler/runtime_core/static_core/verification/util/
H A Dshifted_vector.h33 return Base::operator[](static_cast<typename Base::size_type>(idx + SHIFT)); in operator []()
38 return Base::operator[](static_cast<typename Base::size_type>(idx + SHIFT)); in operator []()
43 return Base::at(static_cast<typename Base::size_type>(idx + SHIFT)); in At()
48 return Base::at(static_cast<typename Base::size_type>(idx + SHIFT)); in At()
53 return idx + SHIFT >= 0 && static_cast<typename Base::size_type>(idx + SHIFT) < Base::size(); in InValidRange()
61 return static_cast<int>(Base::size()) - SHIFT; in EndIndex()
66 Base::resize(Base::size() + static_cast<size_t>(idx - EndIndex() + 1)); in ExtendToInclude()
H A Dtagged_index.h86 UInt mask = ((static_cast<UInt>(1) << TAG_BITS) - static_cast<UInt>(1)) << TAG_SHIFT; in GetMask()
104 auto uintVal = static_cast<UInt>(val); in SetTags()
107 auto tagVal = static_cast<UInt>(tag); in SetTags()
111 val = static_cast<Int>(uintVal); in SetTags()
127 static constexpr UInt ALL_TAG_MASK = ((static_cast<UInt>(1) << ALL_TAG_BITS) - static_cast<UInt>(1)) << INT_BITS;
128 static constexpr UInt VALIDITY_BIT = (static_cast<UInt>(1) << (U_INT_BITS - static_cast<size_t>(1)));
130 static constexpr UInt VALUE_MASK = (static_cast<UIn
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/
H A Ddatainfo.h41 DEBUG_ASSERT(static_cast<size_t>(bitNO) < info.size() * kWordSize, "Out of Range"); in SetBit()
42 info[static_cast<size_t>(bitNO / kWordSize)] |= (1ULL << static_cast<uint64>((bitNO % kWordSize))); in SetBit()
89 auto infoSize = static_cast<const uint32>(info.size());
113 auto infoSize = static_cast<const uint32>(info.size());
122 auto infoSize = static_cast<const uint32>(info.size());
138 auto infoSize = static_cast<const uint32>(info.size());
148 auto infoSize = static_cast<const uint32>(info.size());
170 auto infoSize = static_cast<const int32>(info.size());
189 int32 index = __builtin_ffsll(static_cast<int6
[all...]
/arkcompiler/ets_runtime/ecmascript/ic/
H A Dic_binary_op.h40 BinaryType addType = static_cast<BinaryType>(argType.GetInt()); in AddWithTSType()
110 BinaryType subType = static_cast<BinaryType>(argType.GetInt()); in SubWithTSType()
143 BinaryType mulType = static_cast<BinaryType>(argType.GetInt()); in MulWithTSType()
178 BinaryType divType = static_cast<BinaryType>(argType.GetInt()); in DivWithTSType()
214 BinaryType modType = static_cast<BinaryType>(argType.GetInt()); in ModWithTSType()
298 BinaryType shlType = static_cast<BinaryType>(argType.GetInt()); in ShlWithTSType()
303 static_cast<uint32_t>(opNumber1) & 0x1f; // NOLINT(hicpp-signed-bitwise, readability-magic-numbers) in ShlWithTSType()
306 static_cast<int32_t>(static_cast<unsigned_type>(opNumber0) << shift); // NOLINT(hicpp-signed-bitwise) in ShlWithTSType()
314 BinaryType shrType = static_cast<BinaryTyp in ShrWithTSType()
[all...]
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/
H A Dfast_divisor.h42 uint64_t highOne = static_cast<uint64_t>(1U) << (bitWidth - 1U); in FastConstSignedDivisor()
46 auto p = static_cast<int64_t>(bitWidth - 1U); in FastConstSignedDivisor()
75 magic_ = static_cast<int64_t>(down_cast<int32_t>(magic_)); in FastConstSignedDivisor()
77 shift_ = p - static_cast<int64_t>(bitWidth); in FastConstSignedDivisor()
101 uint64_t sizeMinusOne = static_cast<uint64_t>(bitWidth) - 1U; in FastConstUnsignedDivisor()
103 uint64_t highOne = static_cast<uint64_t>(1U) << sizeMinusOne; in FastConstUnsignedDivisor()
105 auto p = static_cast<int64_t>(sizeMinusOne); in FastConstUnsignedDivisor()
137 } while ((p < 2L * static_cast<int64_t>(bitWidth)) && (q1 < delta || (q1 == delta && r1 == 0U))); in FastConstUnsignedDivisor()
143 shift_ = static_cast<uint64_t>(p - static_cast<int64_ in FastConstUnsignedDivisor()
[all...]

Completed in 15 milliseconds

12345678910>>...27