Home
last modified time | relevance | path

Searched full:infinity (Results 1 – 25 of 262) sorted by relevance

1234567891011

/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
DconversionFromInfinity.sts19 let nan_byte = Infinity * 0 as byte
20 let nan_short = Infinity * 0 as short
21 let nan_long = Infinity * 0 as long
22 let nan_char = Infinity * 0 as char
23 let nan_int = Infinity * 0 as int
24 let nan_float = Infinity * 0 as float
25 let nan_double = Infinity * 0 as double
26 let nan_byte2 = Infinity * 0 as byte
37 let b1 = Infinity as byte // converted at compile time, as 'Infinity' is constant
38 let b2: double = Infinity
[all …]
DBitwiseOperationsOnFloat.sts55 assert (Infinity & -94.24445985981884) == 9223372036854775714
56 assert (-Infinity & 94.24445985981884) == 0
68 assert (Infinity | 0.4) == 9223372036854775807
69 assert (-Infinity | 0.5) == -9223372036854775808
81 assert (Infinity ^ 1.2) == 9223372036854775806
82 assert (-Infinity ^ 10049329.80001) == -9223372036844726479
96 assert (Infinity << 1.0092) == -2
97 assert (-Infinity << 1.0092) == 0
113 assert (Infinity >> 61) == 3
114 assert (-Infinity >> 61) == -4
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/
DGoodRadixTest.sts18 …ures += test(checkGoodRadix(Double.POSITIVE_INFINITY, 2, "Infinity"), "Check Positive Infinity wit…
19 …res += test(checkGoodRadix(Double.NEGATIVE_INFINITY, 2, "-Infinity"), "Check Negatibe Infinity wit…
22 …ures += test(checkGoodRadix(Double.POSITIVE_INFINITY, 8, "Infinity"), "Check Positive Infinity wit…
23 …res += test(checkGoodRadix(Double.NEGATIVE_INFINITY, 8, "-Infinity"), "Check Negatibe Infinity wit…
26 …res += test(checkGoodRadix(Double.POSITIVE_INFINITY, 10, "Infinity"), "Check Positive Infinity wit…
27 …es += test(checkGoodRadix(Double.NEGATIVE_INFINITY, 10, "-Infinity"), "Check Negatibe Infinity wit…
30 …res += test(checkGoodRadix(Double.POSITIVE_INFINITY, 16, "Infinity"), "Check Positive Infinity wit…
31 …es += test(checkGoodRadix(Double.NEGATIVE_INFINITY, 16, "-Infinity"), "Check Negatibe Infinity wit…
DDoubleTest.sts39 "Infinity",
40 "-Infinity",
73 Infinity,
74 -Infinity,
107 Infinity,
108 -Infinity,
/arkcompiler/ets_runtime/test/aottest/regressioncase/
Dpgo_expect_output.txt17 -Infinity
18 -Infinity
19 -Infinity
20 -Infinity
21 -Infinity
22 -Infinity
23 -Infinity
24 -Infinity
Dexpect_output.txt17 -Infinity
18 -Infinity
19 -Infinity
20 -Infinity
21 -Infinity
22 -Infinity
23 -Infinity
24 -Infinity
/arkcompiler/ets_runtime/test/aottest/builtin_inlining/math/Pow/
DbuiltinMathPow.ts54 len = Math.pow(-Infinity, 5);
55 print(len); //: -Infinity
57 len = Math.pow(-Infinity, 6);
58 print(len); //: Infinity
62 len = Math.pow(-Infinity, -3);
63 print("1/x: " + 1 / len); //: 1/x: -Infinity
65 len = Math.pow(-Infinity, -4);
74 print(len); //: Infinity
82 print("1/x: " + 1 / len); //: 1/x: -Infinity
91 print(len); //: -Infinity
[all …]
/arkcompiler/ets_runtime/test/aottest/builtinmath/
Dexpect_output.txt19 Infinity
36 Infinity
37 Infinity
45 -Infinity
46 Infinity
/arkcompiler/ets_runtime/test/moduletest/mapget/
Dexpect_output.txt35 Key: Infinity, Value: ark_infinityValue
37 Key: -Infinity, Value: ark_negativeInfinityValue
56 Keys: Infinity
57 Keys: -Infinity
84 Key: Infinity, Value: ark_infinityValue
85 Key: -Infinity, Value: ark_negativeInfinityValue
105 Key: Infinity, Retrieved Value: ark_infinityValue
106 Key: Infinity, Exists: true
107 Key: -Infinity, Retrieved Value: ark_negativeInfinityValue
108 Key: -Infinity, Exists: true
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_es_checked/
Duint16array.yaml18 …((): Uint16Array => { let b: number[] = [-Infinity, Infinity, -NaN, NaN, 0, 4, 1, 2.1, 256.0, 6553…
21 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0…
22 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0…
23 default_search: ["NaN", "Infinity", "-Infinity", 0.0, "-0.0", 100, 1]
96 - paramOf(11.0, "Infinity")
116 … - paramOf("new Array<number>(-1, 0, 1024, -1024, 0.1, 2.5, -2.5, Infinity, -Infinity, NaN)")
152 - combinationRest "NaN", "10.0", "Infinity"
169 - Uint16Array.of(0, 0.0, 4, 1, 2, -1, 1, 21, 111, 0, 0.0, -Infinity, Infinity, NaN)
Dfloat32array.yaml18 …((): Float32Array => { let b: number[] = [-Infinity, Infinity, -NaN, NaN, 0, 4, 1, 2.1, 256.0, 655…
21 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0…
22 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0…
23 default_search: ["NaN", "Infinity", "-Infinity", 0.0, "-0.0", 100, 1]
96 - paramOf(11.0, "Infinity")
116 … - paramOf("new Array<number>(-1, 0, 1024, -1024, 0.1, 2.5, -2.5, Infinity, -Infinity, NaN)")
152 - combinationRest "NaN", "10.0", "Infinity"
169 - Float32Array.of(0, 0.0, 4, 1, 2, -1, 1, 21, 111, 0, 0.0, -Infinity, Infinity, NaN)
Dint8array.yaml18 …((): Int8Array => { let b: number[] = [-Infinity, Infinity, -NaN, NaN, 0, 4, 1, 2.1, 256.0, 65536.…
21 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0…
22 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0…
23 default_search: ["NaN", "Infinity", "-Infinity", 0.0, "-0.0", 100, 1]
96 - paramOf(11.0, "Infinity")
116 … - paramOf("new Array<number>(-1, 0, 1024, -1024, 0.1, 2.5, -2.5, Infinity, -Infinity, NaN)")
152 - combinationRest "NaN", "10.0", "Infinity"
169 - Int8Array.of(0, 0.0, 4, 1, 2, -1, 1, 21, 111, 0, 0.0, -Infinity, Infinity, NaN)
Dint16array.yaml18 …((): Int16Array => { let b: number[] = [-Infinity, Infinity, -NaN, NaN, 0, 4, 1, 2.1, 256.0, 65536…
21 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0…
22 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0…
23 default_search: ["NaN", "Infinity", "-Infinity", 0.0, "-0.0", 100, 1]
96 - paramOf(11.0, "Infinity")
116 … - paramOf("new Array<number>(-1, 0, 1024, -1024, 0.1, 2.5, -2.5, Infinity, -Infinity, NaN)")
152 - combinationRest "NaN", "10.0", "Infinity"
169 - Int16Array.of(0, 0.0, 4, 1, 2, -1, 1, 21, 111, 0, 0.0, -Infinity, Infinity, NaN)
Dint32array.yaml18 …((): Int32Array => { let b: number[] = [-Infinity, Infinity, -NaN, NaN, 0, 4, 1, 2.1, 256.0, 65536…
21 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0…
22 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0…
23 default_search: ["NaN", "Infinity", "-Infinity", 0.0, "-0.0", 100, 1]
96 - paramOf(11.0, "Infinity")
116 … - paramOf("new Array<number>(-1, 0, 1024, -1024, 0.1, 2.5, -2.5, Infinity, -Infinity, NaN)")
152 - combinationRest "NaN", "10.0", "Infinity"
169 - Int32Array.of(0, 0.0, 4, 1, 2, -1, 1, 21, 111, 0, 0.0, -Infinity, Infinity, NaN)
Duint32array.yaml18 …((): Uint32Array => { let b: number[] = [-Infinity, Infinity, -NaN, NaN, 0, 4, 1, 2.1, 256.0, 6553…
21 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0…
22 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0…
23 default_search: ["NaN", "Infinity", "-Infinity", 0.0, "-0.0", 100, 1]
96 - paramOf(11.0, "Infinity")
116 … - paramOf("new Array<number>(-1, 0, 1024, -1024, 0.1, 2.5, -2.5, Infinity, -Infinity, NaN)")
152 - combinationRest "NaN", "10.0", "Infinity"
169 - Uint32Array.of(0, 0.0, 4, 1, 2, -1, 1, 21, 111, 0, 0.0, -Infinity, Infinity, NaN)
Dfloat64array.yaml18 …((): Float64Array => { let b: number[] = [-Infinity, Infinity, -NaN, NaN, 0, 4, 1, 2.1, 256.0, 655…
21 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0…
22 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0…
23 default_search: ["NaN", "Infinity", "-Infinity", 0.0, "-0.0", 100, 1]
96 - paramOf(11.0, "Infinity")
116 … - paramOf("new Array<number>(-1, 0, 1024, -1024, 0.1, 2.5, -2.5, Infinity, -Infinity, NaN)")
152 - combinationRest "NaN", "10.0", "Infinity"
169 - Float64Array.of(0, 0.0, 4, 1, 2, -1, 1, 21, 111, 0, 0.0, -Infinity, Infinity, NaN)
Duint8array.yaml18 …((): Uint8Array => { let b: number[] = [-Infinity, Infinity, -NaN, NaN, 0, 4, 1, 2.1, 256.0, 65536…
21 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0…
22 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0…
23 default_search: ["NaN", "Infinity", "-Infinity", 0.0, "-0.0", 100, 1]
96 - paramOf(11.0, "Infinity")
116 … - paramOf("new Array<number>(-1, 0, 1024, -1024, 0.1, 2.5, -2.5, Infinity, -Infinity, NaN)")
152 - combinationRest "NaN", "10.0", "Infinity"
169 - Uint8Array.of(0, 0.0, 4, 1, 2, -1, 1, 21, 111, 0, 0.0, -Infinity, Infinity, NaN)
Duint8clampedarray.yaml18 …((): Uint8ClampedArray => { let b: number[] = [-Infinity, Infinity, -NaN, NaN, 0, 4, 1, 2.1, 256.0…
21 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0…
22 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0…
23 default_search: ["NaN", "Infinity", "-Infinity", 0.0, "-0.0", 100, 1]
96 - paramOf(11.0, "Infinity")
116 … - paramOf("new Array<number>(-1, 0, 1024, -1024, 0.1, 2.5, -2.5, Infinity, -Infinity, NaN)")
152 - combinationRest "NaN", "10.0", "Infinity"
169 - Uint8ClampedArray.of(0, 0.0, 4, 1, 2, -1, 1, 21, 111, 0, 0.0, -Infinity, Infinity, NaN)
Dmath.yaml17 …tricky: ["0.0", "-0.0", "NaN", "-NaN", "Infinity", "-Infinity", "1e18", "0.0078125", -5.0, -1.0, +…
80 - combinationRest(2.7, 3.14, -1, 0, 2, "Infinity")
81 - combinationRest(2.7, "Infinity", "NaN", 0)
101 - combinationRest "NaN", "-Infinity", "Infinity", "1.1", "NaN"
106 - combinationRest "NaN", "-Infinity", "Infinity", "1.1", "NaN"
113 - match: (\+|-)?1(\.0), (\+|-)?(Infinity|NaN)
Djson.yaml31 const nums: number[] = [NaN, Infinity, -Infinity, 0, 0.0, -0.0]
42 Array.of<number>(NaN, Infinity, -Infinity, 0, 0.0, -0.0)
Dglobal.yaml18 test_values_number: ["NaN", "-Infinity", "Infinity", "1.1", "123.456", "0o11"]
19 …test_values_string: ["'NaN'", "'-Infinity'", "'Infinity'", "'1.1'", "'123.456'", "'0o11'", "'false…
Ddata_view.yaml26 default_inds: [-1.0, 0.0, 8.0, 12.0, 16.0, 24.0, 14.0, NaN, Infinity, -Infinity]
122 # note that infinity and nan have more than one bit representation and hence not tested here
143 - paramOf 'Infinity', 'NaN', '-Infinity', '1e-30', '1e10'
148 - paramOf 'Infinity', 'NaN', '-Infinity', '1e-30', '1e10'
/arkcompiler/ets_runtime/test/aottest/binaryop_special_value/
Dexpect_output.txt113 Infinity
132 Infinity
170 Infinity
189 Infinity
208 Infinity
227 Infinity
284 Infinity
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/
DGlobal.sts24 * Represents the +Infinity value according to IEEE-754 specification
26 export const Infinity = Double.POSITIVE_INFINITY;
189 * Checks if `Double` value is a floating point value (not a `NaN` or `Infinity`)
200 * Checks if `double` value is a floating point value (not a `NaN` or `Infinity`)
211 * Checks if `Float` value is a floating point value (not a `NaN` or `Infinity`)
222 * Checks if `float` value is a floating point value (not a `NaN` or `Infinity`)
233 * Checks if `byte` value is a floating point value (not a `NaN` or `Infinity`)
237 * @returns unconditionally returns `true`. Integral types can not be `NaN` or `Infinity`.
242 * Checks if `int` value is a floating point value (not a `NaN` or `Infinity`)
246 * @returns unconditionally returns `true`. Integral types can not be `NaN` or `Infinity`.
[all …]
/arkcompiler/ets_runtime/test/moduletest/array/
Dexpect_output.txt102 Group 5: fromIndex in [Infinity, -Infinity]: 1,-1,-1,7
187 Infinity,-Infinity
201 Infinity,-Infinity
242 …orange,true,false,true,[object Object],[object Object],NaN,NaN,NaN,Infinity,-Infinity,/pattern1/,/…
259 Value: Infinity,-Infinity
366 1,NaN,Infinity,2,3,NaN
391 Infinity
392 -Infinity
413 Array: [Infinity, -Infinity], Target: Infinity, Result: true
414 Array: [Infinity, -Infinity], Target: -Infinity, Result: true

1234567891011