Home
last modified time | relevance | path

Searched full:long (Results 1 – 25 of 1148) sorted by relevance

12345678910>>...46

/arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/std/core/
Dlist.std_core_long_instance.yaml16 object_type: Long,
17 init_object_data_type: "long[]",
18 init_object_type: long,
23 method_return_type: long,
24 …init_object_data: "[0 as long, 1 as int, -1 as int, Long.MIN_VALUE as long, Long.MAX_VALUE as long
25 expected_data_type: "long[]",
26 …expected_test_data: "[0 as long, 1 as long, -1 as long, Long.MIN_VALUE as long, Long.MAX_VALUE as
33 object_type: Long,
34 init_object_data_type: "long[]",
35 init_object_type: long,
[all …]
Dlist.std_core_long_static.yaml16 object_type: Long,
17 param_init_data_types: {"param1":"long[]"} ,
18 param_types: {"param1":long},
20 method_return_type: Long,
21 expected_data_item_type: long,
22 expected_data_type: "long[]",
23 …param_list: {"param1": "[(-1) as long, 0 as long, 1 as long, Long.MAX_VALUE as long, Long.MIN_VALU…
24 …expected_test_data: "[(-1) as long, 0 as long, 1 as long, Long.MAX_VALUE as long, Long.MIN_VALUE a…
Dlist.std_core_value.yaml45 name: long,
46 …init_values: {"0 as long", "1 as long", "-1 as long", "Long.MIN_VALUE as long", "Long.MAX_VALUE as…
47 value_name: Long,
93 name: Long,
94Long.valueOf(0 as long)", "Long.valueOf(1 as long)", "Long.valueOf(-1 as long)", "Long.valueOf(Lon…
95 value_name: Long,
147 name: "long[]",
148 …init_values: {"[0 as long]", "[0 as long, 1 as long, -1 as long, Long.MIN_VALUE as long, Long.MAX_…
195 name: "Long[]",
196Long.valueOf(0 as long)]", "[Long.valueOf(0 as long), Long.valueOf(1 as long), Long.valueOf(-1 as
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/debug/
DDebuggerAPI.sts19 public static native getLocalBoolean(regNumber: long): boolean
21 public static native getLocalByte(regNumber: long): byte
23 public static native getLocalShort(regNumber: long): short
25 public static native getLocalChar(regNumber: long): char
27 public static native getLocalInt(regNumber: long): int
29 public static native getLocalFloat(regNumber: long): float
31 public static native getLocalDouble(regNumber: long): double
33 public static native getLocalLong(regNumber: long): long
35 public static native getLocalObject(regNumber: long): Object
37 public static native setLocalBoolean(regNumber: long, value: boolean): void
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DLong.sts19 * Represents boxed long value and related operations
21 export final class Long extends Integral implements Comparable<Long>, JSONable<Long> {
22 private value: long;
25 * Constructs a new Long instance with initial value zero
32 * Constructs a new Long instance with provided initial value
36 public constructor(value: long) {
41 * Constructs a new Long instance with provided initial value
45 public constructor(value: Long) {
54 public unboxed(): long {
65 public static valueOf(value: long): Long {
[all …]
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
DPunctuatorAnyEqual.sts19 let a_long : long = 1234;
25 a_long = 1234 as long;
30 a_long = 1234 as long;
35 a_long = 1234 as long;
40 a_long = 1234 as long;
45 a_long = 1 as long;
50 a_long = 1 as long;
55 a_long = 1 as long;
60 a_long = 1 as long;
65 a_long = 1 as long;
[all …]
/arkcompiler/runtime_core/libabckit/tests/ut/isa/isa_static/arithmetic/
Dbininst_static.sts18 foo(a: long, b: long) : long {
32 // foo(a: long, b: long) : long {
40 // foo(a: long, b: long) : long {
48 // foo(a: long, b: long) : long {
56 // foo(a: long, b: long) : long {
64 // foo(a: long, b: long) : long {
/arkcompiler/runtime_core/static_core/plugins/ets/tests/common/bouncing_peas/
Dbouncing_peas_unit_native.sts16 native function _skoala_createRedrawerPeer(redrawer: Object/*any*/): long/*KNativePointer*/;
17 native function _skoala_drawPicture(picture: long/*KNativePointer*/, data: long/*KNativePointer*/, …
18 native function _skoala_getFrame(peer: long/*KNativePointer*/, a: int, b: int): long/*KNativePointe…
19 native function _skoala_getFrameWidth(peer: long/*KNativePointer*/, frame: long/*KNativePointer*/):…
20 native function _skoala_getFrameHeight(peer: long/*KNativePointer*/, frame: long/*KNativePointer*/)…
21 …(width: int, height: int, scale: float, peer: long/*KNativePointer*/, frame: long/*KNativePointer*…
22 native function _skoala_providePeerFactory(func: long/*KNativePointer*/, arg: long/*KNativePointer*…
24 …n _skoala_Canvas__1nDrawDrawable(ptr: long/*KNativePointer*/, drawablePtr: long/*KNativePointer*/,…
25 native function _skoala_Canvas__1nRestore(ptr: long/*KNativePointer*/): void;
26 native function _skoala_Canvas__1nSave(ptr: long/*KNativePointer*/): int;
[all …]
Dbouncing_peas.sts16 function _skoala_createRedrawerPeer(redrawer: Object/*any*/): long/*KNativePointer*/ { return 1; }
17 function _skoala_drawPicture(picture: long/*KNativePointer*/, data: long/*KNativePointer*/, cb: Obj…
18 function _skoala_getFrame(peer: long/*KNativePointer*/, a: int, b: int): long/*KNativePointer*/ { r…
19 function _skoala_getFrameWidth(peer: long/*KNativePointer*/, frame: long/*KNativePointer*/): int { …
20 function _skoala_getFrameHeight(peer: long/*KNativePointer*/, frame: long/*KNativePointer*/): int {…
21 …(width: int, height: int, scale: float, peer: long/*KNativePointer*/, frame: long/*KNativePointer*…
22 function _skoala_providePeerFactory(func: long/*KNativePointer*/, arg: long/*KNativePointer*/): voi…
25 …n _skoala_Canvas__1nDrawDrawable(ptr: long/*KNativePointer*/, drawablePtr: long/*KNativePointer*/,…
26 function _skoala_Canvas__1nRestore(ptr: long/*KNativePointer*/): void { }
27 function _skoala_Canvas__1nSave(ptr: long/*KNativePointer*/): int { return 1; }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/03.numeric_operator_contexts/binary_numeric_promotion/
Dresult_type_bitwise.params.yaml20 - { type: byte, val: 1 as byte, rt: long, rv: 1 as long, op: '^', res: 4 }
28 - { type: byte, val: 1 as byte, rt: Long, rv: new Long(1 as long), op: '&', res: 4 }
36 - { type: short, val: 1 as short, rt: long, rv: 1 as long, op: '|', res: 4 }
44 - { type: short, val: 1 as short, rt: Long, rv: new Long(1 as long), op: '^', res: 4 }
52 - { type: char, val: "c'2'", rt: long, rv: 1 as long, op: '&', res: 4 }
60 - { type: char, val: "c'2'", rt: Long, rv: new Long(1 as long), op: '|', res: 4 }
68 - { type: int, val: 1, rt: long, rv: 1 as long, op: '^', res: 4 }
76 - { type: int, val: 1, rt: Long, rv: new Long(1 as long), op: '&', res: 4 }
80 - { type: long, val: 1 as long, rt: byte, rv: 1 as byte, op: '^', res: 4 }
81 - { type: long, val: 1 as long, rt: short, rv: 1 as short, op: '|', res: 4 }
[all …]
Dresult_type_cond.params.yaml20 - { type: byte, val: 1 as byte, rt: long, rv: 1 as long, res: 4 }
28 - { type: byte, val: 1 as byte, rt: Long, rv: new Long(1 as long), res: 40 }
36 - { type: short, val: 1 as short, rt: long, rv: 1 as long, res: 4 }
44 - { type: short, val: 1 as short, rt: Long, rv: new Long(1 as long), res: 40 }
52 - { type: char, val: "c'2'", rt: long, rv: 1 as long, res: 40 }
60 - { type: char, val: "c'2'", rt: Long, rv: new Long(1 as long), res: 40 }
68 - { type: int, val: 1, rt: long, rv: 1 as long, res: 4 }
76 - { type: int, val: 1, rt: Long, rv: new Long(1 as long), res: 40 }
80 - { type: long, val: 1 as long, rt: byte, rv: 1 as byte, res: 4 }
81 - { type: long, val: 1 as long, rt: short, rv: 1 as short, res: 4 }
[all …]
Dresult_type_bool.params.yaml20 - { type: byte, val: 1 as byte, rt: long, rv: 1 as long, op: '<' }
28 - { type: byte, val: 1 as byte, rt: Long, rv: new Long(1 as long), op: '<=' }
36 - { type: short, val: 1 as short, rt: long, rv: 1 as long, op: '==' }
44 - { type: short, val: 1 as short, rt: Long, rv: new Long(1 as long), op: '!=' }
52 - { type: char, val: "c'2'", rt: long, rv: 1 as long, op: '>' }
60 - { type: char, val: "c'2'", rt: Long, rv: new Long(1 as long), op: '>=' }
68 - { type: int, val: 1, rt: long, rv: 1 as long, op: '<' }
76 - { type: int, val: 1, rt: Long, rv: new Long(1 as long), op: '<=' }
80 - { type: long, val: 1 as long, rt: byte, rv: 1 as byte, op: '>' }
81 - { type: long, val: 1 as long, rt: short, rv: 1 as short, op: '>=' }
[all …]
Dresult_type_arith.params.yaml20 - { type: byte, val: 1 as byte, rt: long, rv: 1 as long, op: '%', res: 4 }
28 - { type: byte, val: 1 as byte, rt: Long, rv: new Long(1 as long), op: '-', res: 4 }
36 - { type: short, val: 1 as short, rt: long, rv: 1 as long, op: '%', res: 4 }
44 - { type: short, val: 1 as short, rt: Long, rv: new Long(1 as long), op: '-', res: 4 }
52 - { type: char, val: "c'2'", rt: long, rv: 1 as long, op: '%', res: 4 }
60 - { type: char, val: "c'2'", rt: Long, rv: new Long(1 as long), op: '-', res: 4 }
68 - { type: int, val: 1, rt: long, rv: 1 as long, op: '%', res: 4 }
76 - { type: int, val: 1, rt: Long, rv: new Long(1 as long), op: '-', res: 4 }
80 - { type: long, val: 1 as long, rt: byte, rv: 1 as byte, op: '+', res: 4 }
81 - { type: long, val: 1 as long, rt: short, rv: 1 as short, op: '-', res: 4 }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/04.casting_contexts_and_conversions/
Dsequenced.params.yaml19 - { stype: byte, sval: '0 as byte', dtype: Long }
26 - { stype: char, sval: "c'X'", dtype: Long }
33 - { stype: short, sval: '0 as short', dtype: Long }
40 - { stype: int, sval: '0', dtype: Long }
44 - { stype: long, sval: '0 as long', dtype: Byte }
45 - { stype: long, sval: '0 as long', dtype: Short }
46 - { stype: long, sval: '0 as long', dtype: Char }
47 - { stype: long, sval: '0 as long', dtype: Int }
48 - { stype: long, sval: '0 as long', dtype: Float }
49 - { stype: long, sval: '0 as long', dtype: Double }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/07.value_types/01.integer_types_and_operations/subtraction/
Dsubtraction_long.params.yaml19 - { left: Long.MAX_VALUE, right: 0, result: Long.MAX_VALUE }
20 - { left: Long.MAX_VALUE, right: 1, result: 9223372036854775806 }
21 - { left: Long.MIN_VALUE, right: 0, result: Long.MIN_VALUE }
22 - { left: Long.MIN_VALUE, right: 1, result: Long.MAX_VALUE }
25 - { left: Long.MIN_VALUE, right: -1, result: -9223372036854775807 }
26 - { left: Long.MAX_VALUE, right: -1, result: Long.MIN_VALUE }
27 - { left: Long.MIN_VALUE, right: Long.MAX_VALUE, result: 1 }
28 - { left: Long.MAX_VALUE, right: Long.MIN_VALUE, result: -1 }
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/algorithms/
DPrimesTest.sts17 function cmp(x: long[], y: long[]): boolean {
29 function prime_factors_trivial(n0: long): long[] {
30 let primes: long[] = []
31 let factor: long = 2
36 n = (n / factor) as long;
44 function prime_factors_trivial_plus(n0: long): long[] {
45 let primes: long[] = [];
46 let factor: long = 3;
47 let n: long = n0;
49 primes = concat(primes, [2 as long]);
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/07.value_types/01.integer_types_and_operations/multiplication/
Dmultiplication_long.params.yaml20 - { left: 0, right: Long.MAX_VALUE, result: 0 }
21 - { left: 1, right: Long.MAX_VALUE, result: Long.MAX_VALUE }
22 - { left: 0, right: Long.MIN_VALUE, result: 0 }
23 - { left: 1, right: Long.MIN_VALUE, result: Long.MIN_VALUE }
27 - { left: -1, right: Long.MIN_VALUE, result: Long.MIN_VALUE }
28 - { left: -1, right: Long.MAX_VALUE, result: -9223372036854775807 }
29 - { left: Long.MAX_VALUE, right: Long.MAX_VALUE, result: 1 }
30 - { left: Long.MIN_VALUE, right: Long.MIN_VALUE, result: 0 }
31 - { left: 0x4000000000000000, right: 2, result: Long.MIN_VALUE }
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/05.unboxing_conversion/call_lmbd/
Dcall-lmbd_n.params.yaml31 to_type: long
61 to_type: long
88 to_type: long
120 - from_type: Long
123 - { expr: new Long(), val: 0.0 }
124 - { expr: new Long(Byte.MIN_VALUE as long), val: -128.0 as float }
125 - { expr: new Long(Byte.MAX_VALUE as long), val: 127.0 as float }
126 - { expr: new Long(Short.MIN_VALUE as long), val: -32768.0 as float }
127 - { expr: new Long(Short.MAX_VALUE as long), val: 32767.0 as float }
128 … - { expr: new Long(Int.MIN_VALUE as long), val: -2147483600.0 as float } # loss of precision
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/05.unboxing_conversion/decl_var/
Ddecl-var.params.yaml38 to_type: long
77 to_type: long
115 to_type: long
147 - from_type: Long
148 to_type: long
150 - { expr: new Long(), val: 0 }
151 - { expr: new Long(Byte.MIN_VALUE as long), val: -128 }
152 - { expr: new Long(Byte.MAX_VALUE as long), val: 127 }
153 - { expr: new Long(Short.MIN_VALUE as long), val: -32768 }
154 - { expr: new Long(Short.MAX_VALUE as long), val: 32767 }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/05.unboxing_conversion/decl_const/
Ddecl-const.params.yaml38 to_type: long
77 to_type: long
115 to_type: long
147 - from_type: Long
148 to_type: long
150 - { expr: new Long(), val: 0 }
151 - { expr: new Long(Byte.MIN_VALUE as long), val: -128 }
152 - { expr: new Long(Byte.MAX_VALUE as long), val: 127 }
153 - { expr: new Long(Short.MIN_VALUE as long), val: -32768 }
154 - { expr: new Long(Short.MAX_VALUE as long), val: 32767 }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/05.unboxing_conversion/comp_obj/
Dcomp-intf.params.yaml38 to_type: long
77 to_type: long
115 to_type: long
147 - from_type: Long
148 to_type: long
150 - { expr: new Long(), val: 0 }
151 - { expr: new Long(Byte.MIN_VALUE as long), val: -128 }
152 - { expr: new Long(Byte.MAX_VALUE as long), val: 127 }
153 - { expr: new Long(Short.MIN_VALUE as long), val: -32768 }
154 - { expr: new Long(Short.MAX_VALUE as long), val: 32767 }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/05.unboxing_conversion/call_cons/
Dcall-cons.params.yaml38 to_type: long
77 to_type: long
115 to_type: long
147 - from_type: Long
148 to_type: long
150 - { expr: new Long(), val: 0 }
151 - { expr: new Long(Byte.MIN_VALUE as long), val: -128 }
152 - { expr: new Long(Byte.MAX_VALUE as long), val: 127 }
153 - { expr: new Long(Short.MIN_VALUE as long), val: -32768 }
154 - { expr: new Long(Short.MAX_VALUE as long), val: 32767 }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/05.unboxing_conversion/assn_var/
Dassn-var.params.yaml38 to_type: long
77 to_type: long
115 to_type: long
147 - from_type: Long
148 to_type: long
150 - { expr: new Long(), val: 0 }
151 - { expr: new Long(Byte.MIN_VALUE as long), val: -128 }
152 - { expr: new Long(Byte.MAX_VALUE as long), val: 127 }
153 - { expr: new Long(Short.MIN_VALUE as long), val: -32768 }
154 - { expr: new Long(Short.MAX_VALUE as long), val: 32767 }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/05.unboxing_conversion/decl_field/
Ddecl-field.params.yaml38 to_type: long
77 to_type: long
115 to_type: long
147 - from_type: Long
148 to_type: long
150 - { expr: new Long(), val: 0 }
151 - { expr: new Long(Byte.MIN_VALUE as long), val: -128 }
152 - { expr: new Long(Byte.MAX_VALUE as long), val: 127 }
153 - { expr: new Long(Short.MIN_VALUE as long), val: -32768 }
154 - { expr: new Long(Short.MAX_VALUE as long), val: 32767 }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/05.unboxing_conversion/call_meth/
Dcall-meth.params.yaml38 to_type: long
77 to_type: long
115 to_type: long
147 - from_type: Long
148 to_type: long
150 - { expr: new Long(), val: 0 }
151 - { expr: new Long(Byte.MIN_VALUE as long), val: -128 }
152 - { expr: new Long(Byte.MAX_VALUE as long), val: 127 }
153 - { expr: new Long(Short.MIN_VALUE as long), val: -32768 }
154 - { expr: new Long(Short.MAX_VALUE as long), val: 32767 }
[all …]

12345678910>>...46