Home
last modified time | relevance | path

Searched full:bits (Results 1 – 25 of 374) sorted by relevance

12345678910>>...15

/arkcompiler/runtime_core/static_core/verification/util/tests/
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() local
72 bits[idx] = 1; in arbitrary()
74 return BSet {set, bits}; in arbitrary()
114 ClassifySize("Bits.size() in", bitset.bits.Size(), g_statIntervals); in Stat()
127 RC_ASSERT(bit_set.bits.SetBitsCount() == bit_set.indices.size());
133 auto bits = bit_set.bits; variable
134 RC_ASSERT(bits.Size() == bit_set.bits.Size());
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/arkanalyzer/src/utils/
DSparseBitVector.ts20 * is critical, and the set of integers contains large gaps between set bits.
25 * set bits, significantly reducing memory usage for sparse data.
29 * - **Sparse Storage**: Only stores the indices of set bits, making it memory-efficient
32 * - **Iterable**: Provides an iterator to traverse all set bits in stored order.
33 * - **Dynamic Resizing**: Automatically adjusts its internal structure as bits are set
51 const BITWORD_SIZE = 16; // bits of a Word
54 private ELEMENT_SIZE; // bits of element. Default as 128
56 private bits: Word; property in SparseBitVectorElement
61 this.bits = new Uint16Array(this.BITWORDS_NUM);
65 return this.bits[idx];
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/
Dinterpreter_stub-inl.h132 /* 2 : skip 8 bits of opcode and 8 bits of low bits */ in ReadInstSigned16_0()
135 GateRef currentInst2 = Int32LSL(currentInst1, Int32(8)); // 8 : set as high 8 bits in ReadInstSigned16_0()
145 /* 4 : skip 8 bits of opcode and 24 bits of low bits */ in ReadInstSigned32_0()
148 GateRef currentInst1 = Int32LSL(currentInst, Int32(8)); // 8 : set as high 8 bits in ReadInstSigned32_0()
150 GateRef currentInst3 = Int32LSL(currentInst2, Int32(8)); // 8 : set as high 8 bits in ReadInstSigned32_0()
152 GateRef currentInst5 = Int32LSL(currentInst4, Int32(8)); // 8 : set as high 8 bits in ReadInstSigned32_0()
161 /* 2 : skip 8 bits of opcode and 8 bits of low bits */ in ReadInst16_0()
163 GateRef currentInst2 = Int16LSL(currentInst1, Int16(8)); // 8 : set as high 8 bits in ReadInst16_0()
172 /* 3 : skip 8 bits of opcode, 8 bits of prefix and 8 bits of low bits */ in ReadInst16_1()
174 GateRef currentInst2 = Int16LSL(currentInst1, Int16(8)); // 8 : set as high 8 bits in ReadInst16_1()
[all …]
Dlcr_circuit_builder.cpp125 auto bits = LoadStoreAccessor::ToValue(mAttr); in FetchOr() local
126 GateRef result = GetCircuit()->NewGate(circuit_->FetchOr(bits), in FetchOr()
162 auto bits = LoadStoreAccessor::ToValue(mAttr); in Load() local
163 GateRef result = GetCircuit()->NewGate(GetCircuit()->Load(bits), type.GetMachineType(), in Load()
173 auto bits = LoadStoreAccessor::ToValue(mAttr); in Load() local
174 GateRef result = GetCircuit()->NewGate(GetCircuit()->Load(bits), type.GetMachineType(), in Load()
184 auto bits = LoadStoreAccessor::ToValue(mAttr); in LoadWithoutBarrier() local
185 …GateRef result = GetCircuit()->NewGate(GetCircuit()->LoadWithoutBarrier(bits), type.GetMachineType… in LoadWithoutBarrier()
195 auto bits = LoadStoreAccessor::ToValue(mAttr); in LoadWithoutBarrier() local
196 …GateRef result = GetCircuit()->NewGate(GetCircuit()->LoadWithoutBarrier(bits), type.GetMachineType… in LoadWithoutBarrier()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Djs_tagged_value_internals.h25 // Every double with all of its exponent bits set and its highest mantissa bit set is a quiet NaN.
26 // That leaves 51 bits unaccounted for. We’ll avoid one of those so that we don’t step on Intel’s
27 // “QNaN Floating-Point Indefinite” value, leaving us 50 bits. Those remaining bits can be anythin…
28 // so we use a special quietNaN as TaggedInt tag(highest 16bits as 0xFFFF), and need to encode dou…
33 // WeakRef: [0x0000] [47 bits direct pointer] | 1
40 // False: [56 bits 0] | 0x06 // 0110
41 // True: [56 bits 0] | 0x07 // 0111
42 // Undefined: [56 bits 0] | 0x02 // 0010
43 // Null: [56 bits 0] | 0x03 // 0011
44 // Hole: [56 bits 0] | 0x05 // 0101
[all …]
/arkcompiler/runtime_core/common_interfaces/objects/string/
Dbase_string-inl1.h31 uint32_t bits = GetLengthAndFlags(); in IsUtf8() local
32 return CompressedStatusBit::Decode(bits) == STRING_COMPRESSED; in IsUtf8()
37 uint32_t bits = GetLengthAndFlags(); in IsUtf16() local
38 return CompressedStatusBit::Decode(bits) == STRING_UNCOMPRESSED; in IsUtf16()
43 uint32_t bits = GetLengthAndFlags(); in GetLength() local
44 return LengthBits::Decode(bits); in GetLength()
59 uint32_t bits = GetLengthAndFlags(); in SetIsInternString() local
60 uint32_t newVal = IsInternBit::Update(bits, true); in SetIsInternString()
66 uint32_t bits = GetLengthAndFlags(); in IsInternString() local
67 return IsInternBit::Decode(bits); in IsInternString()
[all …]
Dsliced_string-inl.h25 uint32_t bits = GetStartIndexAndFlags(); in GetStartIndex() local
26 return StartIndexBits::Decode(bits); in GetStartIndex()
32 uint32_t bits = GetStartIndexAndFlags(); in SetStartIndex() local
33 uint32_t newVal = StartIndexBits::Update(bits, startIndex); in SetStartIndex()
39 uint32_t bits = GetStartIndexAndFlags(); in GetHasBackingStore() local
40 return HasBackingStoreBit::Decode(bits); in GetHasBackingStore()
45 uint32_t bits = GetStartIndexAndFlags(); in SetHasBackingStore() local
46 uint32_t newVal = HasBackingStoreBit::Update(bits, hasBackingStore); in SetHasBackingStore()
/arkcompiler/runtime_core/static_core/libpandabase/utils/
Dhash_base.h30 * @brief Create 32 bits Hash from @param key via @param seed.
34 * @return 32 bits hash
41 * @brief Create 32 bits Hash from @param key.
44 * @return 32 bits hash
51 * @brief Create 32 bits Hash from MUTF8 @param string.
53 * @return 32 bits hash
60 * @brief Create 32 bits Hash from MUTF8 @param string.
63 * @return 32 bits hash
Dhash.h35 * @brief Create 32 bits Hash from @param key via @param seed.
39 * @return 32 bits hash
47 * @brief Create 32 bits Hash from @param key.
50 * @return 32 bits hash
58 * @brief Create 32 bits Hash from MUTF8 @param string.
60 * @return 32 bits hash
68 * @brief Create 32 bits Hash from MUTF8 @param string.
71 * @return 32 bits hash
152 …// note that the numbers are for 32 bits specifically, see https://github.com/HowardHinnant/hash_a… in MergeHashes()
/arkcompiler/runtime_core/libpandabase/utils/
Dhash_base.h31 * \brief Create 32 bits Hash from \param key via \param seed.
35 * @return 32 bits hash
42 * \brief Create 32 bits Hash from \param key.
45 * @return 32 bits hash
52 * \brief Create 32 bits Hash from MUTF8 \param string.
54 * @return 32 bits hash
61 * \brief Create 32 bits Hash from MUTF8 \param string.
64 * @return 32 bits hash
Dhash.h36 * \brief Create 32 bits Hash from \param key via \param seed.
40 * @return 32 bits hash
48 * \brief Create 32 bits Hash from \param key.
51 * @return 32 bits hash
59 * \brief Create 32 bits Hash from MUTF8 \param string.
61 * @return 32 bits hash
69 * \brief Create 32 bits Hash from MUTF8 \param string.
72 * @return 32 bits hash
157 …// note that the numbers are for 32 bits specifically, see https://github.com/HowardHinnant/hash_a… in merge_hashes()
/arkcompiler/runtime_core/static_core/runtime/include/coretypes/
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 anythin…
51 // so we use a special quietNaN as TaggedInt tag(highest 16bits as 0xFFFF), and need to encode dou…
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 0] | 0x02 // 0010
67 // Hole: [56 bits 0] | 0x00 // 0000
[all …]
/arkcompiler/toolchain/tooling/dynamic/base/
Dpt_base64.cpp62 …*dest++ = (base64Chars[0] << 2) | ((base64Chars[1] & 0x30) >> 4); // 2: shift 2bits, 4: shift 4bits in Decode()
63 …*dest++ = (base64Chars[1] << 4) | ((base64Chars[2] & 0x3c) >> 2); // 2: shift 2bits, 4: shift 4bits in Decode()
64 …*dest++ = (base64Chars[2] << 6) | base64Chars[3]; // 6: shift 6bits, 2: the second char, 3: the th… in Decode()
72 … tmp[0] = (base64Chars[0] << 2) | ((base64Chars[1] & 0x30) >> 4); // 2: shift 2bits, 4: shift 4bits in Decode()
73 … tmp[1] = (base64Chars[1] << 4) | ((base64Chars[2] & 0x3c) >> 2); // 2: shift 2bits, 4: shift 4bits in Decode()
74 …tmp[2] = (base64Chars[2] << 6) | base64Chars[3]; // 6: shift 6bits, 2: the second char, 3: the thi… in Decode()
100 *dest++ = ENCODE_TABLE[src[0] >> 2]; // 2: shift 2bits in Encode()
101 *dest++ = ENCODE_TABLE[((src[0] & 0x03) << 4) | (src[1] >> 4)]; // 4: shift 4bits in Encode()
102 … *dest++ = ENCODE_TABLE[((src[1] & 0x0f) << 2) | (src[2] >> 6)]; // 2: shift 2bits, 6: shift 6bits in Encode()
112 *dest++ = ENCODE_TABLE[src[0] >> 2]; // 2: shift 2bits in Encode()
[all …]
/arkcompiler/runtime_core/static_core/runtime/tooling/sampler/
Dsample_writer.h58 * module row for 64-bits:
64 * sample row for 64-bits:
75 * 32 bits 32 bits 64 bits (128 * <stack size>) bits
79 * 64 bits 64 bits 32 bits 64 bits (8 * <name size>) bits
Dsample_reader-inl.h39 * 32 bits 32 bits 64 bits (128 * <stack size>) bits
44 * 64 bits 64 bits 32 bits 64 bits (8 * <name size>) bits
/arkcompiler/runtime_core/bytecode_optimizer/
Dtagged_value.h27 // Every double with all of its exponent bits set and its highest mantissa bit set is a quiet NaN.
28 // That leaves 51 bits unaccounted for. We’ll avoid one of those so that we don’t step on Intel’s
29 // “QNaN Floating-Point Indefinite” value, leaving us 50 bits. Those remaining bits can be anythin…
30 // so we use a special quietNaN as TaggedInt tag(highest 16bits as 0xFFFF), and need to encode dou…
35 // WeakRef: [0x0000] [47 bits direct pointer] | 1 bit 1
42 // False: [56 bits 0] | 0x06 // 0110
43 // True: [56 bits 0] | 0x07 // 0111
44 // Undefined: [56 bits 0] | 0x0a // 1010
45 // Null: [56 bits 0] | 0x02 // 0010
46 // Hole: [56 bits 0] | 0x00 // 0000
[all …]
/arkcompiler/runtime_core/static_core/runtime/
Dobject_header_config.h44 // Config for High-end devices with hash stored inside object header and 32 bits pointer
49 static constexpr Size BITS = 32U; variable
54 // Config for High-end devices with hash stored inside object header and 64 bits pointer
59 static constexpr Size BITS = 64UL; variable
64 // Config for Low-end devices with hash stored inside object header and 32 bits pointer
69 static constexpr Size BITS = 16U; variable
Dmark_word.h17 // 64 bits object header for high-end devices: (64 bits pointer)
19 // | Object Header (128 bits) | …
21 // | Mark Word (64 bits) | Class Word (64 bits) | …
34 // 64 bits object header for high-end devices: (32 bits pointer)
36 // | Object Header (64 bits) | …
38 // | Mark Word (32 bits) | Class Word (32 bits) | …
51 // 32 bits object header for low-end devices:
53 // | Object Header (32 bits) | …
55 // | Mark Word (16 bits) | Class Word (16 bits) | …
84 static constexpr MarkWordSize CONFIG_MARK_WORD_BIT_SIZE = Config::BITS;
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/
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()
94 // 4. If mod ≥ 2bits - 1, return ℤ(mod - 2bits); otherwise, return ℤ(mod). in AsIntN()
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/
DDataView.ets137 let bits = value;
140 let byteVal = ((bits >>> (i * 8)) & 0xff).toByte()
210 let bits = value;
213 let byteVal = ((bits >>> (i * 8)) & 0xff).toByte()
320 let bits = value;
323 let byteVal = ((bits >>> (i * 8)) & 0xff).toByte()
359 let bits = value;
362 let byteVal = ((bits >>> (i * 8)) & 0xff).toByte()
468 let bits = value;
471 let byteVal = ((bits >>> (i * 8)) & 0xff).toByte()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/proxies/ets_proxy/
Dcheck_access_primitives.js49 function testSInt(tname, bits) { argument
50 let msb = bits - 1;
53 function testUInt(tname, bits) { argument
54 let msb = bits - 1;
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/
Daarch64_imm_valid.h24 // mask1 is a 64bits number that is all 1 shifts left size bits in IsBitSizeImmediate()
26 // mask2 is a 64 bits number that nlowerZeroBits are all 1, higher bits aro all 0 in IsBitSizeImmediate()
47 // get lower 32 bits in IsMoveWidableImmediateCopy()
49 …// If lower 32 bits are all 0, but higher 32 bits have 1, val will be 1 and return true, but it is… in IsMoveWidableImmediateCopy()
65 // When value & ffffffff00000000 is 0, all high 32-bits are 0. in IsSingleInstructionMovable32()
66 // When value & ffffffff00000000 is ffffffff00000000, all high 32-bits are 1. in IsSingleInstructionMovable32()
67 // High 32-bits should be all 0 or all 1, when it comes to mov w0, #imm. in IsSingleInstructionMovable32()
124 // aarch64 assembly takes up to 24-bits immediate, generating in Imm16BitValid()
/arkcompiler/ets_runtime/ecmascript/compiler/assembler/aarch64/
Dmacro_assembler_aarch64.cpp223 /* get lower 32 bits */ in IsMoveWidableImmediate()
306 …/* a 64 bits number is split 4 chunks, each chunk has 16 bits. check each chunk whether is all 1 o… in BetterUseMOVZ()
328 std::cout << "only support 32 and 64 bits size!" << std::endl; in CopyImm()
333 /* check lower 16 bits and higher 16 bits respectively */ in CopyImm()
342 /* create an imm opereand which represents lower 16 bits of the immediate */ in CopyImm()
345 /* create an imm opereand which represents upper 16 bits of the immediate */ in CopyImm()
362 /* get lower 32 bits of the immediate */ in CopyImmSize64()
364 /* get upper 32 bits of the immediate */ in CopyImmSize64()
369 … /* compute lower 32 bits, and then copy to higher 32 bits, so only 2 chunks need be processed */ in CopyImmSize64()
396 /* copy lower 32 bits to higher 32 bits */ in CopyImmSize64()
/arkcompiler/runtime_core/static_core/docs/
Dcode_metainfo.md42 Columns width is in a bits.
53 Column width can't be greater than 32 bits, because `BitTableBuilder` class, that aims to build bit…
73 Row size is 25 bits, that is sum of columns width: 2 + 0 + 15 + 8.
74 …e in a table, e.g. for 2th column it is zero row, that has value 31547. This value fits in 15 bits.
76 So, the size of this table's data is 25 * 5 = 125 bits = 15.625 bytes.
80 Bitmap table is a Bit table with one column, that doesn't have 32-bits limitation for the width.
86 The first four bits determine the variable length of the encoded number:
87 - Values 0..11 represent the result as-is, with no further following bits.
88 - Values 12..15 mean the result is in the next 8/16/24/32-bits respectively.
/arkcompiler/runtime_core/docs/
Dcode_metainfo.md42 Columns width is in a bits.
53 Column width can't be greater than 32 bits, because `BitTableBuilder` class, that aims to build bit…
73 Row size is 25 bits, that is sum of columns width: 2 + 0 + 15 + 8.
74 …e in a table, e.g. for 2th column it is zero row, that has value 31547. This value fits in 15 bits.
76 So, the size of this table's data is 25 * 5 = 125 bits = 15.625 bytes.
80 Bitmap table is a Bit table with one column, that doesn't have 32-bits limitation for the width.
86 The first four bits determine the variable length of the encoded number:
87 - Values 0..11 represent the result as-is, with no further following bits.
88 - Values 12..15 mean the result is in the next 8/16/24/32-bits respectively.

12345678910>>...15