Home
last modified time | relevance | path

Searched full:float (Results 1 – 25 of 1695) sorted by relevance

12345678910>>...68

/arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/std/core/
Dlist.std_core_float_instance.yaml16 object_type: Float,
17 init_object_data_type: "FixedArray<float>",
18 init_object_type: float,
22 method_return_type: float,
23 …init_object_data: "[0.0 as float, 1.0 as float, Float.MIN_VALUE as float, Float.MAX_VALUE as float
24 expected_data_type: "FixedArray<float>",
25 …expected_test_data: "[0.0 as float, 1.0 as float, Float.MIN_VALUE as float, Float.MAX_VALUE as flo…
30 object_type: Float,
31 init_object_data_type: "FixedArray<float>",
32 init_object_type: float,
[all …]
Dlist.std_core_float_static.yaml16 object_type: Float,
17 param_init_data_types: {"param1":"FixedArray<float>"} ,
18 param_types: {"param1":Float},
20 …param_list: {"param1": "[(-1) as float, 0 as float, 1 as float, Float.MAX_VALUE as float, Float.MI…
21 method_return_type: Float,
22 expected_data_item_type: Float,
23 expected_data_type: "FixedArray<float>",
25 …expected_test_data: "[(-1) as float, 0 as float, 1 as float, Float.MAX_VALUE as float, Float.MIN_V…
30 object_type: Float,
31 param_init_data_types: {"param1":"FixedArray<float>"},
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/class_ops/
Dclass_call_static_method_by_name_float_test.ets17 static sum(a0: float, a1: float): float {
18 return a0 + a1 as float;
24 static funcA(a0: float, a1: float): float {
25 return a0 + a1 as float;
36 static funcA(a0: float, a1: float): float {
37 return a0 + a1 as float;
45 static funcA(a0: float, a1: float): float {
46 return a0 + a1 as float;
51 static funcA(a0: float, a1: float): float {
52 return a1 - a0 as float;
[all …]
Dcall_static_method_float_test.ets17 static sum(a0: float, a1: float): float {
18 return a0 + a1 as float;
23 static funcA(a0: float, a1: float): float {
24 return a0 + a1 as float;
31 static funcB(a0: float, a1: float): float {
37 static funcB(a0: float, a1: float): float {
38 return a1 - a0 as float;
46 static funcA(a0: float, a1: float): float {
47 return a1 - a0 as float;
52 static funcA(a0: float, a1: float): float {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/object_ops/
Dobject_call_method_by_name_float_test.ets21 public floatMethod(value1: float, value2: float): float
28 jf(value: float): float;
32 constructor(data: float) {
36 data: float;
38 public floatMethod(value1: float, value2: float): float {
42 return value1 + value2 as float;
46 public floatMethod(value: float): float {
54 protected protectedMethod(value: float): float {
55 return this.data + value as float;
58 private privateMethod(value: float): float {
[all …]
Dcall_object_method_float_test.ets22 public floatMethod(a0: float, a1: float): float
27 public floatMethodVoidParam(): float
29 return 5.0 as float;
32 public floatMethodMultipleParam(a0: short, a1: boolean, a2:float, a3:short, a4:float): float
35 return (a2 + a4) as float;
37 return (a2 - a4) as float;
43 public nestedMethod(data1: float, data2: float): float
45 let method = (value1: float, value2: float): float => {
46 return (value1 + value2) as float;
52 public recursionMethod(a0: float): float
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/function_ops/
Dfunction_call_float_test.ets17 function sum(a0: float, a1: float): float {
18 return a0 + a1 as float;
22 function moduleFunction(value1: float, value2: float): float {
23 return value1 + value2 as float;
26 function moduleFunction(value1: float, value2: float, value3: float): float {
27 return value1 + value2 + value3 as float;
31 function floatFunctionA(value1: float, value2: float): float {
32 return value1 + value2 as float;
35 function floatFunctionA(value1: float, value2: float, value3: float): float {
36 return value1 + value2 + value3 as float;
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/06.value_types/02.floating-point_types_and_operations/division/
Ddivision_float.params.yaml16 - { left: 0.0, right: 0.0, result: Float.NaN }
17 - { left: 1.0, right: 0.0, result: Float.POSITIVE_INFINITY }
18 - { left: -1.0, right: -0.0, result: Float.POSITIVE_INFINITY }
19 - { left: 1.0, right: -0.0, result: Float.NEGATIVE_INFINITY }
20 - { left: -1.0, right: 0.0, result: Float.NEGATIVE_INFINITY }
23 - { left: Float.NaN, right: 0.0, result: Float.NaN }
24 - { left: Float.NaN, right: Float.NaN, result: Float.NaN }
25 - { left: Float.NaN, right: 1.0, result: Float.NaN }
26 - { left: Float.POSITIVE_INFINITY, right: 0.0, result: Float.POSITIVE_INFINITY }
27 - { left: Float.POSITIVE_INFINITY, right: -0.0, result: Float.NEGATIVE_INFINITY }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/24.relational_expressions/01.numerical_comparison_operators/
Dfloat_comparison.params.yaml25 …- {xtype: float, xboxed: Float, xvalue: 0.0, ytype: float, yboxed: Float, yvalue: 1.0, op: ">", …
26 …- {xtype: float, xboxed: Float, xvalue: 1.0, ytype: float, yboxed: Float, yvalue: 0.0, op: ">", …
27 …- {xtype: float, xboxed: Float, xvalue: -1.0, ytype: float, yboxed: Float, yvalue: 0.0, op: ">", …
28 …- {xtype: float, xboxed: Float, xvalue: 0.0, ytype: float, yboxed: Float, yvalue: -1.0, op: ">", …
39 …- {xtype: float, xboxed: Float, xvalue: 0.0, ytype: float, yboxed: Float, yvalue: 1.0, op: "<", …
40 …- {xtype: float, xboxed: Float, xvalue: 1.0, ytype: float, yboxed: Float, yvalue: 0.0, op: "<", …
41 …- {xtype: float, xboxed: Float, xvalue: -1.0, ytype: float, yboxed: Float, yvalue: 0.0, op: "<", …
42 …- {xtype: float, xboxed: Float, xvalue: 0.0, ytype: float, yboxed: Float, yvalue: -1.0, op: "<", …
53 …- {xtype: double, xboxed: Double, xvalue: 0.0, ytype: float, yboxed: Float, yvalue: 1.0, op: ">=…
54 …- {xtype: double, xboxed: Double, xvalue: 1.0, ytype: float, yboxed: Float, yvalue: 0.0, op: ">=…
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/06.value_types/02.floating-point_types_and_operations/less_than/
Dless_than_float.params.yaml23 - { left: Float.MIN_VALUE, right: 0.0, result: "false" }
24 - { left: Float.MIN_VALUE, right: 3.1415927, result: "true" }
25 - { left: Float.MIN_VALUE, right: -Float.MIN_VALUE, result: "false" }
26 - { left: Float.MIN_VALUE, right: Float.MAX_VALUE, result: "true" }
27 - { left: Float.MIN_VALUE, right: Float.NaN, result: "false" }
28 - { left: Float.MIN_VALUE, right: Float.POSITIVE_INFINITY, result: "true" }
29 - { left: Float.MIN_VALUE, right: Float.NEGATIVE_INFINITY, result: "false" }
30 - { left: Float.MIN_VALUE, right: Float.MIN_VALUE, result: "false" }
31 - { left: Float.MAX_VALUE, right: 0.0, result: "false" }
32 - { left: Float.MAX_VALUE, right: 3.1415927, result: "false" }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/06.value_types/02.floating-point_types_and_operations/not_equal/
Dnot_equal_float.params.yaml23 - { left: Float.MIN_VALUE, right: 0.0, result: "true" }
24 - { left: Float.MIN_VALUE, right: 3.1415927, result: "true" }
25 - { left: Float.MIN_VALUE, right: -Float.MIN_VALUE, result: "true" }
26 - { left: Float.MIN_VALUE, right: Float.MAX_VALUE, result: "true" }
27 - { left: Float.MIN_VALUE, right: Float.NaN, result: "true" }
28 - { left: Float.MIN_VALUE, right: Float.POSITIVE_INFINITY, result: "true" }
29 - { left: Float.MIN_VALUE, right: Float.NEGATIVE_INFINITY, result: "true" }
30 - { left: Float.MIN_VALUE, right: Float.MIN_VALUE, result: "false" }
31 - { left: Float.MAX_VALUE, right: 0.0, result: "true" }
32 - { left: Float.MAX_VALUE, right: 3.1415927, result: "true" }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/06.value_types/02.floating-point_types_and_operations/less_or_equal/
Dless_or_equal_float.params.yaml23 - { left: Float.MIN_VALUE, right: 0.0, result: "false" }
24 - { left: Float.MIN_VALUE, right: 3.1415927, result: "true" }
25 - { left: Float.MIN_VALUE, right: -Float.MIN_VALUE, result: "false" }
26 - { left: Float.MIN_VALUE, right: Float.MAX_VALUE, result: "true" }
27 - { left: Float.MIN_VALUE, right: Float.NaN, result: "false" }
28 - { left: Float.MIN_VALUE, right: Float.POSITIVE_INFINITY, result: "true" }
29 - { left: Float.MIN_VALUE, right: Float.NEGATIVE_INFINITY, result: "false" }
30 - { left: Float.MIN_VALUE, right: Float.MIN_VALUE, result: "true" }
31 - { left: Float.MAX_VALUE, right: 0.0, result: "false" }
32 - { left: Float.MAX_VALUE, right: 3.1415927, result: "false" }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/06.value_types/02.floating-point_types_and_operations/greater_or_equal/
Dgreater_or_equal_float.params.yaml23 - { left: Float.MIN_VALUE, right: 0.0, result: "true" }
24 - { left: Float.MIN_VALUE, right: 3.1415927, result: "false" }
25 - { left: Float.MIN_VALUE, right: -Float.MIN_VALUE, result: "true" }
26 - { left: Float.MIN_VALUE, right: Float.MAX_VALUE, result: "false" }
27 - { left: Float.MIN_VALUE, right: Float.NaN, result: "false" }
28 - { left: Float.MIN_VALUE, right: Float.POSITIVE_INFINITY, result: "false" }
29 - { left: Float.MIN_VALUE, right: Float.NEGATIVE_INFINITY, result: "true" }
30 - { left: Float.MIN_VALUE, right: Float.MIN_VALUE, result: "true" }
31 - { left: Float.MAX_VALUE, right: 0.0, result: "true" }
32 - { left: Float.MAX_VALUE, right: 3.1415927, result: "true" }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/06.value_types/02.floating-point_types_and_operations/equal/
Dequal_float.params.yaml23 - { left: Float.MIN_VALUE, right: 0.0, result: "false" }
24 - { left: Float.MIN_VALUE, right: 3.1415927, result: "false" }
25 - { left: Float.MIN_VALUE, right: -Float.MIN_VALUE, result: "false" }
26 - { left: Float.MIN_VALUE, right: Float.MAX_VALUE, result: "false" }
27 - { left: Float.MIN_VALUE, right: Float.NaN, result: "false" }
28 - { left: Float.MIN_VALUE, right: Float.POSITIVE_INFINITY, result: "false" }
29 - { left: Float.MIN_VALUE, right: Float.NEGATIVE_INFINITY, result: "false" }
30 - { left: Float.MIN_VALUE, right: Float.MIN_VALUE, result: "true" }
31 - { left: Float.MAX_VALUE, right: 0.0, result: "false" }
32 - { left: Float.MAX_VALUE, right: 3.1415927, result: "false" }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/06.value_types/02.floating-point_types_and_operations/greater_than/
Dgreater_than_float.params.yaml23 - { left: Float.MIN_VALUE, right: 0.0, result: "true" }
24 - { left: Float.MIN_VALUE, right: 3.1415927, result: "false" }
25 - { left: Float.MIN_VALUE, right: -Float.MIN_VALUE, result: "true" }
26 - { left: Float.MIN_VALUE, right: Float.MAX_VALUE, result: "false" }
27 - { left: Float.MIN_VALUE, right: Float.NaN, result: "false" }
28 - { left: Float.MIN_VALUE, right: Float.POSITIVE_INFINITY, result: "false" }
29 - { left: Float.MIN_VALUE, right: Float.NEGATIVE_INFINITY, result: "true" }
30 - { left: Float.MIN_VALUE, right: Float.MIN_VALUE, result: "false" }
31 - { left: Float.MAX_VALUE, right: 0.0, result: "true" }
32 - { left: Float.MAX_VALUE, right: 3.1415927, result: "true" }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DFloat.ets19 * Represents boxed float value and related operations
21 export final class Float extends Floating implements Comparable<Float>, JSONable<Float> {
22 private value: float;
25 * Constructs a new Float instance with initial value zero
32 * Constructs a new Float instance with provided initial value
36 public constructor(value: float) {
41 * Constructs a new Float instance with provided initial value (`double` type literal)
54 public unboxed(): float {
65 public static valueOf(value: float): Float {
67 return new Float(value);
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/29.assignment/02.compound_assignment_operators/
Dops_neg_rt.params.yaml17 - { type: float, v: Float.POSITIVE_INFINITY, op: '-', q: Float.POSITIVE_INFINITY }
18 - { type: float, v: Float.NEGATIVE_INFINITY, op: '-', q: Float.NEGATIVE_INFINITY }
21 - { type: float, v: Float.POSITIVE_INFINITY, op: '/', q: Float.POSITIVE_INFINITY }
22 - { type: float, v: Float.NEGATIVE_INFINITY, op: '/', q: Float.NEGATIVE_INFINITY }
25 - { type: float, v: Float.POSITIVE_INFINITY, op: '%', q: Float.POSITIVE_INFINITY }
26 - { type: float, v: Float.NEGATIVE_INFINITY, op: '%', q: Float.NEGATIVE_INFINITY }
29 - { type: float, v: 0.0, op: '/', q: -0.0 }
31 - { type: float, v: 0.0, op: '%', q: -0.0 }
35 - { type: Float, v: Float.POSITIVE_INFINITY, op: '-', q: Float.POSITIVE_INFINITY }
36 - { type: Float, v: Float.NEGATIVE_INFINITY, op: '-', q: Float.NEGATIVE_INFINITY }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/alias_unconversion/call_lmbd/
Dcall-lmbd.params.yaml56 - from_type: Float
57 to_type: float
59 - { expr: new Float(+0.0 as float), val: +0.0 as float }
60 - { expr: new Float(-0.0 as float), val: -0.0 as float }
61 - { expr: new Float(Byte.MIN_VALUE as float), val: -128.0 as float }
62 - { expr: new Float(Byte.MAX_VALUE as float), val: 127.0 as float }
63 - { expr: new Float(Short.MIN_VALUE as float), val: -32768.0 as float }
64 - { expr: new Float(Short.MAX_VALUE as float), val: 32767.0 as float }
65 … - { expr: new Float(Int.MIN_VALUE as float), val: -2.14748365E9 as float } # loss of precision
66 … - { expr: new Float(Int.MAX_VALUE as float), val: 2.14748365E9 as float } # loss of precision
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates_deprecated/05.unboxing_conversion/call_lmbd/
Dcall-lmbd.params.yaml56 - from_type: Float
57 to_type: float
59 - { expr: new Float(+0.0 as float), val: +0.0 as float }
60 - { expr: new Float(-0.0 as float), val: -0.0 as float }
61 - { expr: new Float(Byte.MIN_VALUE as float), val: -128.0 as float }
62 - { expr: new Float(Byte.MAX_VALUE as float), val: 127.0 as float }
63 - { expr: new Float(Short.MIN_VALUE as float), val: -32768.0 as float }
64 - { expr: new Float(Short.MAX_VALUE as float), val: 32767.0 as float }
65 … - { expr: new Float(Int.MIN_VALUE as float), val: -2.14748365E9 as float } # loss of precision
66 … - { expr: new Float(Int.MAX_VALUE as float), val: 2.14748365E9 as float } # loss of precision
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/06.value_types/02.floating-point_types_and_operations/subtraction/
Dsubtraction_float.params.yaml23 - { left: Float.NaN, right: 0.0, result: Float.NaN }
24 - { left: Float.NaN, right: 1.0, result: Float.NaN }
25 - { left: Float.NaN, right: Float.NaN, result: Float.NaN }
26 - { left: Float.POSITIVE_INFINITY, right: 0.0, result: Float.POSITIVE_INFINITY }
27 - { left: Float.POSITIVE_INFINITY, right: -1.0, result: Float.POSITIVE_INFINITY }
28 - { left: Float.POSITIVE_INFINITY, right: Float.POSITIVE_INFINITY, result: Float.NaN }
29 - { left: Float.POSITIVE_INFINITY, right: Float.NEGATIVE_INFINITY, result: Float.POSITIVE_INFINITY }
30 - { left: Float.NEGATIVE_INFINITY, right: 0.0, result: Float.NEGATIVE_INFINITY }
31 - { left: Float.NEGATIVE_INFINITY, right: Float.NEGATIVE_INFINITY, result: Float.NaN }
32 - { left: Float.NEGATIVE_INFINITY, right: Float.POSITIVE_INFINITY, result: Float.NEGATIVE_INFINITY }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/06.value_types/02.floating-point_types_and_operations/multiplication/
Dmultiplication_float.params.yaml21 - { left: Float.NaN, right: 0.0, result: Float.NaN }
22 - { left: Float.NaN, right: Float.NaN, result: Float.NaN }
23 - { left: Float.POSITIVE_INFINITY, right: 0.0, result: Float.NaN }
24 - { left: Float.NEGATIVE_INFINITY, right: 0.0, result: Float.NaN }
25 - { left: Float.POSITIVE_INFINITY, right: -1.0, result: Float.NEGATIVE_INFINITY }
26 - { left: Float.NEGATIVE_INFINITY, right: -1.0, result: Float.POSITIVE_INFINITY }
27 - { left: Float.POSITIVE_INFINITY, right: Float.POSITIVE_INFINITY, result: Float.POSITIVE_INFINITY }
28 - { left: Float.POSITIVE_INFINITY, right: Float.NEGATIVE_INFINITY, result: Float.NEGATIVE_INFINITY }
29 - { left: Float.NEGATIVE_INFINITY, right: Float.NEGATIVE_INFINITY, result: Float.POSITIVE_INFINITY }
34 - { left: Float.MIN_VALUE, right: +0.0, result: 0.0 }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates_deprecated/05.unboxing_conversion/call_meth/
Dcall-meth.params.yaml45 to_type: float
47 - { expr: new Byte(), val: 0.0 as float }
48 - { expr: new Byte(127 as byte), val: 127.0 as float }
49 - { expr: new Byte(-128 as byte), val: -128.0 as float }
86 to_type: float
89 - { expr: new Short(Byte.MIN_VALUE as short), val: -128.0 as float }
90 - { expr: new Short(Byte.MAX_VALUE as short), val: 127.0 as float }
91 - { expr: new Short(Short.MIN_VALUE), val: -32768.0 as float }
92 - { expr: new Short(Short.MAX_VALUE), val: 32767.0 as float }
126 to_type: float
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates_deprecated/05.unboxing_conversion/assn_var/
Dassn-var.params.yaml45 to_type: float
47 - { expr: new Byte(), val: 0.0 as float }
48 - { expr: new Byte(127 as byte), val: 127.0 as float }
49 - { expr: new Byte(-128 as byte), val: -128.0 as float }
86 to_type: float
89 - { expr: new Short(Byte.MIN_VALUE as short), val: -128.0 as float }
90 - { expr: new Short(Byte.MAX_VALUE as short), val: 127.0 as float }
91 - { expr: new Short(Short.MIN_VALUE), val: -32768.0 as float }
92 - { expr: new Short(Short.MAX_VALUE), val: 32767.0 as float }
126 to_type: float
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates_deprecated/05.unboxing_conversion/comp_obj/
Dcomp-intf.params.yaml45 to_type: float
47 - { expr: new Byte(), val: 0.0 as float }
48 - { expr: new Byte(127 as byte), val: 127.0 as float }
49 - { expr: new Byte(-128 as byte), val: -128.0 as float }
86 to_type: float
89 - { expr: new Short(Byte.MIN_VALUE as short), val: -128.0 as float }
90 - { expr: new Short(Byte.MAX_VALUE as short), val: 127.0 as float }
91 - { expr: new Short(Short.MIN_VALUE), val: -32768.0 as float }
92 - { expr: new Short(Short.MAX_VALUE), val: 32767.0 as float }
126 to_type: float
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates_deprecated/05.unboxing_conversion/call_cons/
Dcall-cons.params.yaml45 to_type: float
47 - { expr: new Byte(), val: 0.0 as float }
48 - { expr: new Byte(127 as byte), val: 127.0 as float }
49 - { expr: new Byte(-128 as byte), val: -128.0 as float }
86 to_type: float
89 - { expr: new Short(Byte.MIN_VALUE as short), val: -128.0 as float }
90 - { expr: new Short(Byte.MAX_VALUE as short), val: 127.0 as float }
91 - { expr: new Short(Short.MIN_VALUE), val: -32768.0 as float }
92 - { expr: new Short(Short.MAX_VALUE), val: 32767.0 as float }
126 to_type: float
[all …]

12345678910>>...68