Home
last modified time | relevance | path

Searched refs:bits (Results 1 - 25 of 41) sorted by relevance

12

/arkcompiler/runtime_core/static_core/verification/util/tests/
H A Dbit_vector_property_test.cpp39 BitVector bits; member
43 if (bits.SetBitsCount() != indices.size()) { in IsEqual()
47 if (!bits[elem]) { in IsEqual()
70 BitVector bits {size}; in arbitrary()
72 bits[idx] = 1; in arbitrary()
74 return BSet {set, bits}; in arbitrary()
114 ClassifySize("Bits.size() in", bitset.bits.Size(), g_statIntervals);
127 RC_ASSERT(bit_set.bits.SetBitsCount() == bit_set.indices.size());
133 auto bits = bit_set.bits;
[all...]
/arkcompiler/ets_runtime/ecmascript/
H A Djs_hclass.h537 uint32_t bits = GetBitField(); in GetObjectType() local
538 return ObjectTypeBits::Decode(bits); in GetObjectType()
543 uint32_t bits = GetBitField(); in SetObjectType() local
544 uint32_t newVal = ObjectTypeBits::Update(bits, type); in SetObjectType()
1053 uint32_t bits = GetBitField(); in IsJSShared() local
1054 return IsJSSharedBit::Decode(bits); in IsJSShared()
1463 uint32_t bits = GetBitField(); in IsCallable() local
1464 return CallableBit::Decode(bits); in IsCallable()
1469 uint32_t bits = GetBitField(); in IsConstructor() local
1470 return ConstructorBit::Decode(bits); in IsConstructor()
1475 uint32_t bits = GetBitField(); IsExtensible() local
1481 uint32_t bits = GetBitField(); IsPrototype() local
1487 uint32_t bits = GetBitField(); IsClassConstructor() local
1498 uint32_t bits = GetBitField(); IsClassPrototype() local
1504 uint32_t bits = GetBitField(); IsNativeBindingObject() local
1510 uint32_t bits = GetBitField(); IsDictionaryMode() local
1517 uint32_t bits = GetBitField(); IsTS() local
1523 uint32_t bits = GetBitField(); IsJSFunctionFromBitField() local
1529 uint32_t bits = GetBitField(); IsOnHeapFromBitField() local
1786 uint32_t bits = GetBitField(); SetElementsKind() local
1793 uint32_t bits = GetBitField(); GetElementsKind() local
1799 uint32_t bits = GetBitField(); SetLevel() local
1806 uint32_t bits = GetBitField(); GetLevel() local
1830 uint32_t bits = GetBitField(); IsStableJSArguments() local
1836 uint32_t bits = GetBitField(); IsStableJSArray() local
1852 uint32_t bits = GetBitField1(); SetNumberOfProps() local
1865 uint32_t bits = GetBitField1(); NumberOfProps() local
1907 uint32_t bits = GetBitField1(); GetObjectSize() local
1919 uint32_t bits = GetBitField1(); SetObjectSize() local
[all...]
H A Djs_bigint.cpp511 uint64_t bits = 0; in DoubleToBigInt() local
512 if (memcpy_s(&bits, sizeof(bits), &num, sizeof(num)) != EOK) { in DoubleToBigInt()
516 // Take out bits 62-52 (11 bits in total) and subtract 1023 in DoubleToBigInt()
517 uint64_t integerDigits = ((bits >> base::DOUBLE_SIGNIFICAND_SIZE) & 0x7FF) - base::DOUBLE_EXPONENT_BIAS; in DoubleToBigInt()
523 uint64_t mantissa = (bits & base::DOUBLE_SIGNIFICAND_MASK) | base::DOUBLE_HIDDEN_BIT; in DoubleToBigInt()
534 mantissa = mantissa << (64 - leftover); // 64 : double bits size in DoubleToBigInt()
587 JSHandle<BigInt> bigint = CreateBigint(thread, 2); // 2 : one int64_t bits need two uint32_t bits in Uint64ToBigInt()
1532 AsUintN(JSThread *thread, JSTaggedNumber &bits, JSHandle<BigInt> bigint) AsUintN() argument
1553 AsintN(JSThread *thread, JSTaggedNumber &bits, JSHandle<BigInt> bigint) AsintN() argument
[all...]
H A Decma_macros.h206 #define FIRST_BIT_FIELD(bitFieldName, name, type, bits) \
207 using name##Bits = BitField<type, 0, bits>; \
211 #define NEXT_BIT_FIELD(bitFieldName, name, type, bits, lastName) \
212 using name##Bits = lastName##Bits::NextField<type, bits>; \
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/proxies/ets_proxy/
H A Dcheck_access_primitives.js45 function testSInt(tname, bits) {
46 let msb = bits - 1;
49 function testUInt(tname, bits) {
50 let msb = bits - 1;
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dlcr_circuit_builder.cpp140 auto bits = LoadStoreAccessor::ToValue(mAttr); in Load() local
141 GateRef result = GetCircuit()->NewGate(GetCircuit()->Load(bits), type.GetMachineType(), in Load()
151 auto bits = LoadStoreAccessor::ToValue(mAttr); in Load() local
152 GateRef result = GetCircuit()->NewGate(GetCircuit()->Load(bits), type.GetMachineType(), in Load()
161 auto bits = LoadStoreAccessor::ToValue(mAttr); in Load() local
162 GateRef result = GetCircuit()->NewGate(GetCircuit()->Load(bits), type.GetMachineType(), in Load()
215 GateRef bits = Int32(base::INT32_BITS - 1); in DoubleToInt() local
217 BRANCH_CIR2(Int32LessThan(exp, bits), exit, &overflow); in DoubleToInt()
249 GateRef bits = Int32(typeBits - 1); in DoubleToInt() local
251 BRANCH_CIR2(Int32LessThan(exp, bits), in DoubleToInt()
[all...]
/arkcompiler/runtime_core/libpandabase/utils/
H A Dbit_vector.h246 * - set/clear bits with automatic resizing (SetBit/ClearBit)
274 BitVectorBase(void *data, size_t bits) in BitVectorBase() argument
275 : size_(bits), in BitVectorBase()
276 storage_(reinterpret_cast<WordType *>(data), GetWordIndex(bits) + (((bits % WORD_BITS) != 0) ? 1 : 0)) in BitVectorBase()
357 void resize(size_t bits) in resize() argument
361 if (bits > initial_size) { in resize()
362 EnsureSpace(bits); in resize()
363 std::fill(begin() + initial_size, begin() + bits, false); in resize()
365 size_ = bits; in resize()
547 EnsureSpace(size_t bits) EnsureSpace() argument
[all...]
/arkcompiler/runtime_core/static_core/libpandabase/utils/
H A Dbit_vector.h256 * - set/clear bits with automatic resizing (SetBit/ClearBit)
284 BitVectorBase(void *data, size_t bits) in BitVectorBase() argument
285 : size_(bits), in BitVectorBase()
286 storage_(reinterpret_cast<WordType *>(data), GetWordIndex(bits) + (((bits % WORD_BITS) != 0) ? 1 : 0)) in BitVectorBase()
372 void resize(size_t bits) in resize() argument
376 if (bits > initial_size) { in resize()
377 EnsureSpace(bits); in resize()
378 std::fill(begin() + initial_size, begin() + bits, false); in resize()
380 size_ = bits; in resize()
583 EnsureSpace(size_t bits) EnsureSpace() argument
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/
H A Dmpl_int_val.h117 /// @return true if all bits are 1
238 IntVal operator<<(uint64 bits) const in operator <<()
240 DEBUG_ASSERT(bits <= width, "invalid shift value"); in operator <<()
241 return IntVal(value << bits, width, sign); in operator <<()
244 IntVal operator<<(const IntVal &bits) const in operator <<()
246 return *this << bits.value; in operator <<()
252 IntVal operator>>(uint64 bits) const in operator >>()
254 DEBUG_ASSERT(bits <= width, "invalid shift value"); in operator >>()
255 return IntVal(sign ? GetSXTValue() >> bits : value >> bits, widt in operator >>()
[all...]
/arkcompiler/runtime_core/libpandafile/
H A Dpandafile_isapi.rb47 def storage_width(bits)
48 (bits + 7) / 8 * 8
/arkcompiler/runtime_core/static_core/libpandafile/
H A Dpandafile_isapi.rb47 def storage_width(bits)
48 (bits + 7) / 8 * 8
/arkcompiler/runtime_core/static_core/runtime/include/coretypes/
H A Dtagged_value.h48 // Every double with all of its exponent bits set and its highest mantissa bit set is a quiet NaN.
49 // That leaves 51 bits unaccounted for. We’ll avoid one of those so that we don’t step on Intel’s
50 // “QNaN Floating-Point Indefinite” value, leaving us 50 bits. Those remaining bits can be anything.
51 // so we use a special quietNaN as TaggedInt tag(highest 16bits as 0xFFFF), and need to encode double
56 // WeakRef: [0x0000] [47 bits direct pointer] | 1 bit 1
63 // False: [56 bits 0] | 0x06 // 0110
64 // True: [56 bits 0] | 0x07 // 0111
65 // Undefined: [56 bits 0] | 0x0a // 1010
66 // Null: [56 bits
392 JsCastDoubleToInt(double d, size_t bits) JsCastDoubleToInt() argument
[all...]
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_number.h187 int64_t bits = base::bit_cast<int64_t>(number.GetDouble()); in GetNumberHash() local
188 value = static_cast<unsigned int>(bits) ^ static_cast<unsigned int>(bits >> 32); // 32: hight 32 bit in GetNumberHash()
H A Dbuiltins_bigint.cpp65 JSHandle<JSTaggedValue> bits = GetCallArg(argv, 0); in AsUintN() local
67 // 1. Let bits be ? ToIndex(bits). in AsUintN()
68 JSTaggedNumber index = JSTaggedValue::ToIndex(thread, bits); in AsUintN()
74 // 3. Return a BigInt representing bigint modulo 2bits. in AsUintN()
84 JSHandle<JSTaggedValue> bits = GetCallArg(argv, 0); in AsIntN() local
86 // 1. Let bits be ? ToIndex(bits). in AsIntN()
87 JSTaggedNumber index = JSTaggedValue::ToIndex(thread, bits); in AsIntN()
93 // 3. Let mod be ℝ(bigint) modulo 2bits in AsIntN()
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/helpers/
H A Dets_intrinsics_helpers.h74 } bits __attribute__((packed)); member
119 expI = u.bits.exponent + expI; in PowHelper()
128 u.bits.exponent = 0; in PowHelper()
130 u.bits.significand = (u.bits.significand | coretypes::DOUBLE_HIDDEN_BIT) >> (1 - expI); in PowHelper()
133 u.bits.exponent = expI; in PowHelper()
/arkcompiler/ets_runtime/ecmascript/js_api/
H A Djs_api_list.h43 uint32_t bits = GetBitField(); in IsOrderedList() local
44 return IsOrderedListBit::Decode(bits); in IsOrderedList()
/arkcompiler/runtime_core/libpandabase/tests/
H A Dbit_vector_test.cpp113 void TestIteration1(T &vector, size_t bits) in TestIteration1() argument
118 ASSERT_EQ(vector.size(), bits); in TestIteration1()
166 void TestIteration2(T &vector, size_t bits) in TestIteration2() argument
/arkcompiler/runtime_core/isa/
H A Disapi.rb323 bits = pretty.gsub(/[a-z]/, '').split('_').map(&:to_i).sum
324 raise "Incorrect format name #{name}" if bits % 8 != 0
327 bits / 8 + opcode_bytes
/arkcompiler/runtime_core/static_core/isa/
H A Disapi.rb282 bits = pretty.gsub(/[a-z]/, '').split('_').map(&:to_i).sum
283 raise "Incorrect format name #{name}" if bits % 8 != 0
286 bits / 8 + opcode_bytes
/arkcompiler/runtime_core/static_core/verification/util/
H A Dbit_vector.h204 auto bits(size_t from, size_t to) const // NOLINT(readability-identifier-naming) in bits() function in ark::verifier::BitVector
223 auto bits(size_t from, size_t to) // NOLINT(readability-identifier-naming) in bits() function
324 return bits(lastWordStart, Size() - 1) == rhs.bits(lastWordStart, Size() - 1);
471 Word val = bits(lastWordStart, Size() - 1);
/arkcompiler/ets_runtime/ecmascript/base/
H A Dnumber_helper.cpp1116 int32_t NumberHelper::DoubleToInt(double d, size_t bits)
1121 if (exp < static_cast<int>(bits - 1)) {
1122 // smaller than INT<bits>_MAX, fast conversion
1124 } else if (exp < static_cast<int>(bits + DOUBLE_SIGNIFICAND_SIZE)) {
1125 // Still has significand bits after mod 2^<bits>
1126 // Get low <bits> bits by shift left <64 - bits> and shift right <64 - bits>
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
H A Dbuiltins_collator_stub_builder.cpp110 GateRef bits = Int32And(Int32LSR(bitfield, Int32(BitType::START_BIT)), in GetBitField() local
112 return bits; in GetBitField()
/arkcompiler/runtime_core/compiler/tests/
H A Ddraw_cfg_test.cpp36 #include <bits/types/FILE.h>
/arkcompiler/runtime_core/static_core/libpandabase/tests/
H A Dbit_vector_test.cpp164 void TestIteration(T &vector, size_t bits) in TestIteration() argument
169 ASSERT_EQ(vector.size(), bits); in TestIteration()
/arkcompiler/ets_runtime/ecmascript/compiler/tests/
H A Dloop_optimization_test.cpp194 auto bits = ecmascript::kungfu::LoadStoreAccessor::ToValue(ecmascript::kungfu::MemoryAttribute::Default()); in HWTEST_F_L0() local
195 GateRef invariant = circuit.NewGate(circuit.Load(bits), MachineType::I32, in HWTEST_F_L0()

Completed in 23 milliseconds

12