/arkcompiler/ets_runtime/test/aottest/builtinmath/ |
D | builtinmath.ts | 94 len = Math.abs(Number.NaN); 96 len = Math.abs(-Number.NaN); 98 len = Math.abs(Number.NEGATIVE_INFINITY); 100 len = Math.abs(Number.POSITIVE_INFINITY); 102 len = Math.abs(9.6); 104 len = Math.abs(6); 106 len = Math.abs(-9.6); 108 len = Math.abs(-6); 110 function abs() function 112 Math.abs = replace [all …]
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_math.cpp | 44 return GetTaggedInt(std::abs(numberValue.GetInt())); in Abs() 60 if (!std::isnan(std::abs(value)) && value <= 1 && value >= -1) { in Acos() 115 if (!std::isnan(std::abs(value))) { in Asinh() 134 if (!std::isnan(std::abs(value))) { in Atan() 182 } else if (!std::isnan(std::abs(valueY)) && !std::isnan(std::abs(valueX))) { in Atan2() 202 if (!std::isnan(std::abs(value))) { in Cbrt() 223 if (!std::isnan(std::abs(value))) { in Ceil() 244 auto tmpValue = std::abs(value); in Clz32() 266 if (std::isfinite(std::abs(value))) { in Cos() 285 if (!std::isnan(std::abs(value))) { in Cosh() [all …]
|
D | builtins_number.cpp | 149 result = (value == number.GetNumber()) && std::abs(value) <= base::MAX_SAFE_INTEGER; in IsSafeInteger()
|
/arkcompiler/runtime_core/tests/cts-assembly/ |
D | intrinsics-04.pa | 23 call.short abs, v2, v2 30 call.short abs, v2, v2 40 .function f64 abs(f64 a0){
|
D | intrinsics-03.pa | 23 call.short abs, v2, v2 30 call.short abs, v2, v2 40 .function f32 abs(f32 a0){
|
D | math-22.pa | 22 call.short abs, v0, v0 33 .function f64 abs(f64 a0){
|
D | math-25.pa | 22 call.short abs, v0, v0 33 .function f64 abs(f64 a0){
|
D | math-23.pa | 22 call.short abs, v0, v0 33 .function f64 abs(f64 a0){
|
D | literalarrays-04.pa | 33 call.short abs, v2, v2 49 .function f32 abs(f32 a0){
|
D | literalarrays-03.pa | 33 call.short abs, v2, v2 49 .function f64 abs(f64 a0){
|
D | arrays-03.pa | 67 call.short abs, v3, v3 83 .function f64 abs(f64 a0){
|
D | arrays-04.pa | 67 call.short abs, v3, v3 83 .function f32 abs(f32 a0){
|
/arkcompiler/runtime_core/tests/checked/ |
D | const_array_test.pa | 87 call.short abs, v5, v5 97 call.short abs, v5, v5 107 call.short abs, v5, v5 143 .function f32 abs(f32 a0){
|
D | cross_peephole.pa | 59 # returns a1+abs(a2)
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | controlFlowCaching.ts | 212 cosr = Math.abs(Math.cos(rotation * Math.PI / 180)), 214 AssertType(Math.abs(Math.cos(rotation * Math.PI / 180)), "number"); 215 AssertType(Math.abs, "(number) => number"); 224 sinr = Math.abs(Math.sin(rotation * Math.PI / 180)), 226 AssertType(Math.abs(Math.sin(rotation * Math.PI / 180)), "number"); 227 AssertType(Math.abs, "(number) => number");
|
/arkcompiler/ets_runtime/test/moduletest/stubbuilder/ |
D | stubbuilder.js | 752 function abs() { function 760 print(abs()); 761 print(abs(10)); 762 print(abs(-9));
|
/arkcompiler/runtime_core/compiler/tests/ |
D | asm_printer_test.cpp | 336 ONE_TEST_BODY(PrinterAarch64Test, TestAbs, abs, AARCH64) 352 ONE_TEST_BODY(PrinterAarch32Test, TestAbs, abs, AARCH32) 368 ONE_TEST_BODY(PrinterAmd64Test, TestAbs, abs, X86_64)
|
D | asm_caller.cpp | 31 DEF(abs, [](auto param) { return (param > 0) ? param : -param; }) \
|
/arkcompiler/runtime_core/compiler/optimizer/analysis/ |
D | linear_order.cpp | 137 if (std::abs(r) < options.GetCompilerFreqBasedBranchReorderThreshold()) { in LeastLikelySuccessor()
|
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/ |
D | hprof_test.cpp | 312 ASSERT_TRUE(std::abs(count1 - count2) <= 500LL); in HWTEST_F_L0()
|
/arkcompiler/ets_frontend/es2panda/test/compiler/js/ |
D | cocos_worker_test.js | 8969 abs: function(t) { method 11170 return Math.abs(t - e) <= hi * Math.max(1, Math.abs(t), Math.abs(e)); 11174 return Math.abs(t - e) <= i; 11226 return t = e - Math.abs(t - e); 11232 …return Math.abs(t.x) > Math.abs(t.y) ? Math.abs(t.x) > Math.abs(t.z) ? t.x : t.z : Math.abs(t.y) >… 11235 return Math.abs(t) > Math.abs(e) ? t : e; 11341 …abs(t.r - e.r) <= i * Math.max(1, Math.abs(t.r), Math.abs(e.r)) && Math.abs(t.g - e.g) <= i * Math… 11720 Math.abs(i) < hi ? t.x = 0 : t.x = 1 / i; 11721 Math.abs(s) < hi ? t.y = 0 : t.y = 1 / s; 11722 Math.abs(n) < hi ? t.z = 0 : t.z = 1 / n; [all …]
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_tagged_value.cpp | 91 if (std::floor(std::abs(thisValue)) != std::abs(thisValue)) { in IsInteger() 126 return (std::abs(GetDouble() - 0.0) <= limit); in IsZero()
|
/arkcompiler/ets_runtime/tools/circuit_viewer/src/ir/ |
D | IrViewer.js | 720 if (Math.abs(this.drapSelect_.x - x) > 10 || 721 Math.abs(this.drapSelect_.y - y) > 10 ||
|
/arkcompiler/ets_runtime/ecmascript/base/ |
D | number_helper.cpp | 169 return DoubleToFixed(thread, number, std::abs(radixDigit)); in DoubleToPrecision()
|
/arkcompiler/ets_runtime/ecmascript/ts_types/ |
D | lib_ark_builtins.d.ts | 321 static abs(x: number): number;
|