Home
last modified time | relevance | path

Searched +full:64 +full:- +full:bit (Results 1 – 25 of 385) sorted by relevance

12345678910>>...16

/arkcompiler/runtime_core/static_core/plugins/ets/templates/stdlib/
DDataView.ets.j22 * Copyright (c) 2021-2025 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
47 this(buffer, byteOffset, (buffer as Buffer).getByteLength() - byteOffset)
76 …teOffset, 0), asIntOrDefault(byteLength, (buffer as Buffer).getByteLength() - asIntOrDefault(byteO…
79 {%- for bit in [8, 16, 32, 64] %}
80 {%- for mode in ["Int", "Uint", "Float"] %}
81 {%- if mode != "Float" or bit >= 32 %}
82 // === {{mode}}{{bit}} ===
83 {%- set impls = ['Little', 'Big'] if bit != 8 else ['Big'] %}
85 {%- set type2nameBits = {8: "byte", 16: "short", 32: "int", 64: "long"} %}
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/
Daarch64_imm_valid.h7 * http://www.apache.org/licenses/LICENSE-2.0
24 // 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()
27 uint64 mask2 = (1UL << static_cast<uint64>(nLowerZeroBits)) - 1UL; in IsBitSizeImmediate()
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()
80 constexpr uint32 bitLen = 64; in IsSingleInstructionMovable64()
89 // for target linux-aarch64-gnu in Imm12BitValid()
94 // For the 32-bit variant: is the bitmask immediate
[all …]
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Dxor2.64.yaml1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
16 - file-name: "xor2.64"
22 - x_none
24 - file-name: "op_vs_8_zero"
27 - sig: xor2.64 v:in:i64
29 prefix: bit
31 code-template: |
33 ldai.64 0
34 movi.64 v0, %s
[all …]
Dor2.64.yaml1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
16 - file-name: "or2.64"
22 - x_none
24 - file-name: "op_vs_8_zero"
27 - sig: or2.64 v:in:i64
29 prefix: bit
31 code-template: |
33 ldai.64 0
34 movi.64 v0, %s
[all …]
Dand2.64.yaml1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
16 - file-name: "and2.64"
22 - x_none
24 - file-name: "op_vs_8_zero"
27 - sig: and2.64 v:in:i64
29 prefix: bit
31 code-template: |
33 ldai.64 0
34 movi.64 v0, %s
[all …]
Dshr2.64.yaml1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
16 - file-name: "shr2.64"
22 - x_none
24 - file-name: "op_vs_8_zero"
27 - sig: shr2.64 v:in:i64
29 prefix: bit
31 code-template: |
33 ldai.64 0
34 movi.64 v0, %s
[all …]
Dshl2.64.yaml1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
16 - file-name: "shl2.64"
22 - x_none
24 - file-name: "op_vs_8_zero"
27 - sig: shl2.64 v:in:i64
29 prefix: bit
31 code-template: |
33 ldai.64 0
34 movi.64 v0, %s
[all …]
Dashr2.64.yaml1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
16 - file-name: "ashr2.64"
22 - x_none
24 - file-name: "op_vs_8_zero"
27 - sig: ashr2.64 v:in:i64
29 prefix: bit
31 code-template: |
33 ldai.64 0
34 movi.64 v0, %s
[all …]
Dand2.yaml1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
16 - file-name: "and2"
22 - x_none
24 - file-name: "op_vs_8_zero"
27 - sig: and2 v:in:i32
29 prefix: bit
31 code-template: |
45 - values:
46 - "0"
[all …]
/arkcompiler/runtime_core/static_core/tests/cts-generator/cts-template/
Dxor2.64.yaml1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
16 - file-name: "xor2.64"
22 - x_none
24 - file-name: "op_vs_8_zero"
27 - sig: xor2.64 v:in:i64
29 prefix: bit
31 code-template: |
33 ldai.64 0
34 movi.64 v0, %s
[all …]
Dor2.64.yaml1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
16 - file-name: "or2.64"
22 - x_none
24 - file-name: "op_vs_8_zero"
27 - sig: or2.64 v:in:i64
29 prefix: bit
31 code-template: |
33 ldai.64 0
34 movi.64 v0, %s
[all …]
Dand2.64.yaml1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
16 - file-name: "and2.64"
22 - x_none
24 - file-name: "op_vs_8_zero"
27 - sig: and2.64 v:in:i64
29 prefix: bit
31 code-template: |
33 ldai.64 0
34 movi.64 v0, %s
[all …]
Dshl2.64.yaml1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
16 - file-name: "shl2.64"
22 - x_none
24 - file-name: "op_vs_8_zero"
27 - sig: shl2.64 v:in:i64
29 prefix: bit
31 code-template: |
33 ldai.64 0
34 movi.64 v0, %s
[all …]
Dshr2.64.yaml1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
16 - file-name: "shr2.64"
22 - x_none
24 - file-name: "op_vs_8_zero"
27 - sig: shr2.64 v:in:i64
29 prefix: bit
31 code-template: |
33 ldai.64 0
34 movi.64 v0, %s
[all …]
Dashr2.64.yaml1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
16 - file-name: "ashr2.64"
22 - x_none
24 - file-name: "op_vs_8_zero"
27 - sig: ashr2.64 v:in:i64
29 prefix: bit
31 code-template: |
33 ldai.64 0
34 movi.64 v0, %s
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/arkts/@arkts/collections/BitVector/
DhasTests.ets7 * http://www.apache.org/licenses/LICENSE-2.0
25 …suite.addTest("Verify if bit vector correctly identifies bit values within a specified range.", Bi…
26 …suite.addTest("Verify that bit vector throws an error when toIndex is negative.", BitVector_has_Fu…
27 …suite.addTest("Verify that bit vector throws an error when fromIndex is not an integer.", BitVecto…
28 …suite.addTest("Verify that bit vector throws an error when both fromIndex and toIndex are negative…
29 …suite.addTest("Verify that bit vector throws an error when fromIndex is negative while toIndex is …
30 …suite.addTest("Verify if bit vector correctly identifies bit values in a large range spanning mult…
31 …suite.addTest("Verify if bit vector with initial length correctly identifies bit values across its…
32 …suite.addTest("Verify that bit vector throws an error when fromIndex is greater than toIndex.", Bi…
33 …suite.addTest("Verify if bit vector correctly identifies bit values in a single-element range.", B…
[all …]
DvaluesSetAllBitsTests.ets7 * http://www.apache.org/licenses/LICENSE-2.0
22 …suite.addTest("Verify if values method returns a correct iterator for BitVector with 64 zeroes.", …
23 …s method returns a correct iterator for BitVector with initial length plus 64 zeroes.", BitVector_…
25 …if setAllBits method correctly sets all bits to 0 or 1 in a BitVector with 64 elements.", BitVecto…
26 … correctly sets all bits to 0 or 1 in a BitVector with initial length plus 64 elements.", BitVecto…
63 * @tc.desc : Verify if values method returns a correct iterator for BitVector with 64 zeroes.
70 let bitVectorLength = 64;
75 assertEQ(bitVector.length, 64, "BitVector length should be 64");
92 …erify if values method returns a correct iterator for BitVector with initial length plus 64 zeroes.
99 let bitVectorLength = 64;
[all …]
DcreatePushPopTests.ets7 * http://www.apache.org/licenses/LICENSE-2.0
25 …suite.addTest("Tests BitVector constructor with invalid non-integer length parameter.", BitVector_…
26 … suite.addTest("Appends the bit element to the end of this bit vector.", BitVector_push_Func_001);
27 …suite.addTest("Appends multiple bit elements to the end of this bit vector in a loop.", BitVector_…
28 …suite.addTest("Appends multiple bit elements to the end of this bit vector, starting with an initi…
29 …suite.addTest("Retrieves and removes the bit element from the end of this bit vector.", BitVector_…
30 …suite.addTest("Retrieves and removes the bit elements from the end of this bit vector in a loop.",…
31 …suite.addTest("Retrieves and removes the bit elements from the end of this bit vector, leaving the…
61 * @tc.desc : Appends the bit element to the end of this bit vector.
84 * @tc.desc : Appends multiple bit elements to the end of this bit vector in a loop.
[all …]
DflipBitByIndexTests.ets7 * http://www.apache.org/licenses/LICENSE-2.0
25 …suite.addTest("Verify basic bit flipping functionality in a bit vector.", BitVector_flipBitByIndex…
27 …suite.addTest("Test flipBitByIndex with non-integer index value.", BitVector_flipBitByIndex_Func_0…
28 …suite.addTest("Test bit flipping operations on larger bit vector.", BitVector_flipBitByIndex_Func_…
29 …suite.addTest("Test bit flipping operations on bit vector with initial size.", BitVector_flipBitBy…
37 * @tc.desc : Test flipping bits from 1 to 0 and from 0 to 1 in a bit vector.
54 assertEQ(bitVector[0], 0, "Bit at index 0 should be flipped to 0");
55 assertEQ(bitVector[1], 0, "Bit at index 1 should be flipped to 0");
56 assertEQ(bitVector[2], 0, "Bit at index 2 should be flipped to 0");
57 assertEQ(bitVector[3], 0, "Bit at index 3 should be flipped to 0");
[all …]
DgetBitsByRangeTests.ets7 * http://www.apache.org/licenses/LICENSE-2.0
25 …suite.addTest("Returns the bit values in a valid range of indices.", BitVector_getBitsByRange_Func…
27 … suite.addTest("Throws an error for non-integer 'fromIndex'.", BitVector_getBitsByRange_Func_003);
30 suite.addTest("Returns the bit values in a large range.", BitVector_getBitsByRange_Func_006);
31 …suite.addTest("Returns the bit values in a range with an initial length.", BitVector_getBitsByRang…
39 * @tc.desc : Returns the bit values in a valid range of indices in a bit vector.
52 assertEQ(result[0], 1, "Bit at index 0 should be 1");
53 assertEQ(result[1], 1, "Bit at index 1 should be 1");
54 assertEQ(result[2], 0, "Bit at index 2 should be 0");
60 * @tc.desc : Throws an error for invalid 'toIndex' range in a bit vector.
[all …]
/arkcompiler/runtime_core/compiler/docs/
Dinterface_inline_cache.md11 * There is a 90% - 95% chance that the same method will be used in real-world application test.
20 * must be 64bit system
27 Cache structure:(offset addr)/(class addr) 32bit/32bit
28 -----------------------------------------------
31 cache:offset/class ---------->| <-|
35 --> call runtime irtoc function | |
36 read cache <-----------------------| |
41 save method‘s offset to cache >------|
42 <-- return to (.text)
44 -----------------------------------------------
[all …]
/arkcompiler/runtime_core/static_core/compiler/docs/
Dinterface_inline_cache.md11 * There is a 90% - 95% chance that the same method will be used in real-world application test.
20 * must be 64bit system
27 Cache structure:(offset addr)/(class addr) 32bit/32bit
28 -----------------------------------------------
31 cache:offset/class ---------->| <-|
35 --> call runtime irtoc function | |
36 read cache <-----------------------| |
41 save method‘s offset to cache >------|
42 <-- return to (.text)
44 -----------------------------------------------
[all …]
/arkcompiler/runtime_core/tests/checked/
Dldarray_obj.pa1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
15 #! RUN force_jit: true, options: "--compiler-regex=_GLOBAL::test", entry: "_GLOBAL::main",…
21 ldarr.64 a0
22 return.64
28 # v1 <- array
32 movi.64 v3, 0
33 starr.64 v1, v3
36 starr.64 v1, v3
37 movi.64 v0, 0x7FFFFFFF00000001
[all …]
/arkcompiler/runtime_core/static_core/tests/checked/
Dldarray_obj.pa1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
15 #! RUN force_jit: true, options: "--compiler-regex=_GLOBAL::test", entry: "_GLOBAL::main",…
21 ldarr.64 a0
22 return.64
28 # v1 <- array
32 movi.64 v3, 0
33 starr.64 v1, v3
36 starr.64 v1, v3
37 movi.64 v0, 0x7FFFFFFF00000001
[all …]
/arkcompiler/runtime_core/static_core/verification/util/
Dmem.h2 * Copyright (c) 2022-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
24 is unavailable for allocation -- for example, it may be reserved for kernel memory.
27 https://linux-kernel-labs.github.io/refs/heads/master/lectures/address-space.html
29 Linux is using a split address space for 32 bit systems, although in the past there
31 …architecture that supports it, e.g. x86). Linux always uses split address space for 64 bit systems.
33 [For 32-bit Linux, the split is usually 3/1, i.e. 0x00000000-0xc0000000 is user space,
34 0xc0000000-0xffffffff is kernel space]
36 …For Windows: https://learn.microsoft.com/en-us/windows-hardware/drivers/gettingstarted/virtual-add…
38 For a 32-bit process, the virtual address space is usually the 2-gigabyte range 0x00000000
[all …]

12345678910>>...16