| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | conversionFromInfinity.sts | 19 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 …]
|
| D | BitwiseOperationsOnFloat.sts | 55 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/ |
| D | GoodRadixTest.sts | 18 …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…
|
| D | DoubleTest.sts | 39 "Infinity", 40 "-Infinity", 73 Infinity, 74 -Infinity, 107 Infinity, 108 -Infinity,
|
| /arkcompiler/ets_runtime/test/aottest/regressioncase/ |
| D | pgo_expect_output.txt | 17 -Infinity 18 -Infinity 19 -Infinity 20 -Infinity 21 -Infinity 22 -Infinity 23 -Infinity 24 -Infinity
|
| D | expect_output.txt | 17 -Infinity 18 -Infinity 19 -Infinity 20 -Infinity 21 -Infinity 22 -Infinity 23 -Infinity 24 -Infinity
|
| /arkcompiler/ets_runtime/test/aottest/builtin_inlining/math/Pow/ |
| D | builtinMathPow.ts | 54 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/ |
| D | expect_output.txt | 19 Infinity 36 Infinity 37 Infinity 45 -Infinity 46 Infinity
|
| /arkcompiler/ets_runtime/test/moduletest/mapget/ |
| D | expect_output.txt | 35 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/ |
| D | float32array.yaml | 18 …((): 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)
|
| D | uint32array.yaml | 18 …((): 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)
|
| D | int16array.yaml | 18 …((): 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)
|
| D | int32array.yaml | 18 …((): 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)
|
| D | uint16array.yaml | 18 …((): 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)
|
| D | uint8clampedarray.yaml | 18 …((): 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)
|
| D | float64array.yaml | 18 …((): 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)
|
| D | int8array.yaml | 18 …((): 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)
|
| D | uint8array.yaml | 18 …((): 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)
|
| D | math.yaml | 17 …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)
|
| D | json.yaml | 31 const nums: number[] = [NaN, Infinity, -Infinity, 0, 0.0, -0.0] 42 Array.of<number>(NaN, Infinity, -Infinity, 0, 0.0, -0.0)
|
| D | global.yaml | 18 test_values_number: ["NaN", "-Infinity", "Infinity", "1.1", "123.456", "0o11"] 19 …test_values_string: ["'NaN'", "'-Infinity'", "'Infinity'", "'1.1'", "'123.456'", "'0o11'", "'false…
|
| D | data_view.yaml | 26 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/ |
| D | expect_output.txt | 113 Infinity 132 Infinity 170 Infinity 189 Infinity 208 Infinity 227 Infinity 284 Infinity
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/ |
| D | Global.sts | 24 * 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/ |
| D | expect_output.txt | 102 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
|