| /arkcompiler/ets_runtime/test/aottest/builtin_inlining/global/IsNan/ |
| D | builtinGlobalIsNan.ts | 26 return isNaN(x); 38 //aot: [trace] aot inline builtin: isNan, caller function name:func_main_0@builtinGlobalIsNan 39 print(isNaN(x)) //: true 42 //aot: [trace] aot inline builtin: isNan, caller function name:func_main_0@builtinGlobalIsNan 43 print(isNaN(0)); //: false 44 //aot: [trace] aot inline builtin: isNan, caller function name:func_main_0@builtinGlobalIsNan 45 print(isNaN(3)); //: false 46 //aot: [trace] aot inline builtin: isNan, caller function name:func_main_0@builtinGlobalIsNan 47 print(isNaN(-5)); //: false 50 //aot: [trace] aot inline builtin: isNan, caller function name:func_main_0@builtinGlobalIsNan [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/intrinsics/ |
| D | isNaN.sts | 17 if (!Float.isNaN(Float.NaN)) return 1; 18 if (Float.isNaN(Float.POSITIVE_INFINITY)) return 2; 19 if (Float.isNaN(Float.NEGATIVE_INFINITY)) return 3; 20 if (Float.isNaN(Float.MAX_VALUE)) return 4; 21 if (Float.isNaN(Float.MIN_VALUE)) return 5; 22 if (Float.isNaN(1.2345 as float)) return 6; 24 if (!Double.isNaN(Double.NaN)) return 11; 25 if (Double.isNaN(Double.POSITIVE_INFINITY)) return 12; 26 if (Double.isNaN(Double.NEGATIVE_INFINITY)) return 13; 27 if (Double.isNaN(Double.MAX_VALUE)) return 14; [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/math/ |
| D | BoundariesTest.sts | 32 return Double.isNaN(abs(nan)) 42 && Double.isNaN(sin(nan)) 43 && Double.isNaN(sin(posInf)) 44 && Double.isNaN(sin(negInf)); 50 && Double.isNaN(cos(nan)) 51 && Double.isNaN(cos(posInf)) 52 && Double.isNaN(cos(negInf)); 56 return Double.isNaN(acosh(nan)) 62 return Double.isNaN(acos(nan)) 63 && Double.isNaN(acos(posInf)) [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/ |
| D | ets_isNaN.sts | 50 if (!Double.isNaN(Double.NaN)) return 11; 51 if (Double.isNaN(Double.POSITIVE_INFINITY)) return 12; 52 if (Double.isNaN(Double.NEGATIVE_INFINITY)) return 13; 53 if (Double.isNaN(Double.MAX_VALUE)) return 14; 54 if (Double.isNaN(Double.MIN_VALUE)) return 15; 55 if (Double.isNaN(1.2345)) return 16; 61 if (!Float.isNaN(Float.NaN)) return 1; 62 if (Float.isNaN(Float.POSITIVE_INFINITY)) return 2; 63 if (Float.isNaN(Float.NEGATIVE_INFINITY)) return 3; 64 if (Float.isNaN(Float.MAX_VALUE)) return 4; [all …]
|
| D | ets_min.sts | 112 if (!Float.isNaN(min(Float.NaN, Float.NaN))) return 29; 113 if (!Float.isNaN(min(Float.MAX_VALUE, Float.NaN))) return 30; 127 if (!Double.isNaN(min(Double.NaN, Double.NaN))) return 39; 128 if (!Double.isNaN(min(Double.MAX_VALUE, Double.NaN))) return 40; 138 if (!Double.isNaN(Math.min(Double.NaN, Double.NaN))) return 49; 139 if (!Double.isNaN(Math.min(Double.MAX_VALUE, Double.NaN))) return 50;
|
| D | ets_max.sts | 112 if (!Float.isNaN(max(Float.NaN, Float.NaN))) return 29; 113 if (!Float.isNaN(max(Float.MAX_VALUE, Float.NaN))) return 30; 127 if (!Double.isNaN(max(Double.NaN, Double.NaN))) return 39; 128 if (!Double.isNaN(max(Double.MAX_VALUE, Double.NaN))) return 40; 138 if (!Double.isNaN(Math.max(Double.NaN, Double.NaN))) return 49; 139 if (!Double.isNaN(Math.max(Double.MAX_VALUE, Double.NaN))) return 50;
|
| /arkcompiler/ets_runtime/test/moduletest/builtins/ |
| D | builtinsnumber.js | 109 print("builtins number isnan"); 110 print(Number.isNaN()); 111 print(Number.isNaN(undefined)); 112 print(Number.isNaN(null)); 113 print(Number.isNaN(NaN)); 114 print(Number.isNaN(0)); 115 print(Number.isNaN(1)); 116 print(Number.isNaN(-123)); 117 print(Number.isNaN(1.23)); 118 print(Number.isNaN(-1.23e10)); [all …]
|
| /arkcompiler/ets_runtime/test/aottest/builtins_number/ |
| D | builtins_number.ts | 32 //isNaN 33 print(Number.isNaN(NaN)); // true 34 print(Number.isNaN(123)); // false 35 print(Number.isNaN("Hello")); // false 36 print(Number.isNaN(undefined)); // false 37 print(Number.isNaN(null)); // false 38 print(Number.isNaN({})); // false
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/04.casting_contexts_and_conversions/01.numeric_casting_conversions/ |
| D | num_cc_nan.sts | 24 if (!Float.isNaN(d1)) { 30 if (!Double.isNaN(d2)) { 36 if (!Double.isNaN(d3)) { 42 if (!Float.isNaN(d4)) {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/utils/ |
| D | test_check_test_float_result.j2 | 21 if(expected.isNaN()) { 22 if (actual.isNaN()) return 0; 26 if({{.item.result_type|capitalize}}.isNaN(expected)) { 27 if ({{.item.result_type|capitalize}}.isNaN(actual)) return 0;
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/ |
| D | Global.sts | 79 export function isNaN(d: Number): boolean { 80 return d.isNaN(); 90 export function isNaN(d: number): boolean { 91 return Double.isNaN(d); 101 export function isNaN(f: Float): boolean { 102 return f.isNaN(); 112 export function isNaN(f: float): boolean { 113 return Float.isNaN(f); 123 export function isNaN(b: byte): boolean { return false; } 132 export function isNaN(i: int): boolean { return false; } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/ |
| D | Runtime.sts | 88 if (isNaN(n1val) != isNaN(n2val)) { 90 } else if (isNaN(n1val)) { 105 if (isNaN(f1val) != isNaN(f2val)) { 107 } else if (isNaN(f1val)) {
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_math.cpp | 59 if (!std::isnan(std::abs(value)) && value <= 1 && value >= -1) { in Acos() 114 if (!std::isnan(std::abs(value))) { in Asinh() 133 if (!std::isnan(std::abs(value))) { in Atan() 181 } else if (!std::isnan(std::abs(valueY)) && !std::isnan(std::abs(valueX))) { in Atan2() 201 if (!std::isnan(std::abs(value))) { in Cbrt() 222 if (!std::isnan(std::abs(value))) { in Ceil() 284 if (!std::isnan(std::abs(value))) { in Cosh() 303 if (!std::isnan(std::abs(value))) { in Exp() 322 if (!std::isnan(std::abs(value))) { in Expm1() 343 if (!std::isnan(std::abs(value))) { in Floor() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/10.compatibility_features/01.extended_conditional_expressions/ |
| D | ops2.sts | 37 assert(Number.isNaN(a && b)); 44 assert(Number.isNaN(a && b)); 49 assert(Number.isNaN(a || b));
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/07.value_types/02.floating-point_types_and_operations/unary_plus/ |
| D | unary_plus_float.sts | 24 if (Float.isNaN(v)) { 25 assert(Float.isNaN(r))
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/07.value_types/02.floating-point_types_and_operations/unary_minus/ |
| D | unary_minus_float.sts | 24 if (Float.isNaN(v)) { 25 assert(Float.isNaN(r))
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/07.value_types/02.floating-point_types_and_operations/addition/ |
| D | addition_float.sts | 26 if (Float.isNaN(v)) { 27 assert(Float.isNaN(r))
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/07.value_types/02.floating-point_types_and_operations/multiplication/ |
| D | multiplication_float.sts | 26 if (Float.isNaN(v)) { 27 assert(Float.isNaN(r))
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/07.value_types/02.floating-point_types_and_operations/subtraction/ |
| D | subtraction_float.sts | 26 if (Float.isNaN(v)) { 27 assert(Float.isNaN(r))
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/07.value_types/02.floating-point_types_and_operations/division/ |
| D | division_float.sts | 26 if (Float.isNaN(v)) { 27 assert(Float.isNaN(r))
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/ |
| D | mir_const.cpp | 149 if (std::isnan(floatConst.value.floatValue)) { in operator ==() 150 return std::isnan(value.floatValue); in operator ==() 152 if (std::isnan(value.floatValue)) { in operator ==() 153 return std::isnan(floatConst.value.floatValue); in operator ==() 171 if (std::isnan(floatConst.value.dValue)) { in operator ==() 172 return std::isnan(value.dValue); in operator ==() 174 if (std::isnan(value.dValue)) { in operator ==() 175 return std::isnan(floatConst.value.dValue); in operator ==()
|
| /arkcompiler/ets_runtime/test/moduletest/regressparseInt/ |
| D | regressparseInt.js | 17 print(isNaN(parseInt('0x '))); 19 print(isNaN(parseInt('0x ', 16)));
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/indexed_signature/ |
| D | main.ts | 27 if (!isNaN(property)) { 43 if (!isNaN(property)) {
|
| D | main.js | 22 if (!isNaN(property)) { 34 if (!isNaN(property)) {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/01.predefined_types/02.boxed_types/ |
| D | bt_nan.sts | 30 assert boxed.isNaN() 31 assert {{c.to_type}}.isNaN(boxed.unboxed())
|