Home
last modified time | relevance | path

Searched refs:abs (Results 1 – 25 of 36) sorted by relevance

12

/arkcompiler/ets_runtime/test/aottest/builtinmath/
Dbuiltinmath.ts94 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/
Dbuiltins_math.cpp44 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 …]
Dbuiltins_number.cpp149 result = (value == number.GetNumber()) && std::abs(value) <= base::MAX_SAFE_INTEGER; in IsSafeInteger()
/arkcompiler/runtime_core/tests/cts-assembly/
Dintrinsics-04.pa23 call.short abs, v2, v2
30 call.short abs, v2, v2
40 .function f64 abs(f64 a0){
Dintrinsics-03.pa23 call.short abs, v2, v2
30 call.short abs, v2, v2
40 .function f32 abs(f32 a0){
Dmath-22.pa22 call.short abs, v0, v0
33 .function f64 abs(f64 a0){
Dmath-25.pa22 call.short abs, v0, v0
33 .function f64 abs(f64 a0){
Dmath-23.pa22 call.short abs, v0, v0
33 .function f64 abs(f64 a0){
Dliteralarrays-04.pa33 call.short abs, v2, v2
49 .function f32 abs(f32 a0){
Dliteralarrays-03.pa33 call.short abs, v2, v2
49 .function f64 abs(f64 a0){
Darrays-03.pa67 call.short abs, v3, v3
83 .function f64 abs(f64 a0){
Darrays-04.pa67 call.short abs, v3, v3
83 .function f32 abs(f32 a0){
/arkcompiler/runtime_core/tests/checked/
Dconst_array_test.pa87 call.short abs, v5, v5
97 call.short abs, v5, v5
107 call.short abs, v5, v5
143 .function f32 abs(f32 a0){
Dcross_peephole.pa59 # returns a1+abs(a2)
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DcontrolFlowCaching.ts212 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/
Dstubbuilder.js752 function abs() { function
760 print(abs());
761 print(abs(10));
762 print(abs(-9));
/arkcompiler/runtime_core/compiler/tests/
Dasm_printer_test.cpp336 ONE_TEST_BODY(PrinterAarch64Test, TestAbs, abs, AARCH64)
352 ONE_TEST_BODY(PrinterAarch32Test, TestAbs, abs, AARCH32)
368 ONE_TEST_BODY(PrinterAmd64Test, TestAbs, abs, X86_64)
Dasm_caller.cpp31 DEF(abs, [](auto param) { return (param > 0) ? param : -param; }) \
/arkcompiler/runtime_core/compiler/optimizer/analysis/
Dlinear_order.cpp137 if (std::abs(r) < options.GetCompilerFreqBasedBranchReorderThreshold()) { in LeastLikelySuccessor()
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/
Dhprof_test.cpp312 ASSERT_TRUE(std::abs(count1 - count2) <= 500LL); in HWTEST_F_L0()
/arkcompiler/ets_frontend/es2panda/test/compiler/js/
Dcocos_worker_test.js8969 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;
11341abs(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/
Djs_tagged_value.cpp91 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/
DIrViewer.js720 if (Math.abs(this.drapSelect_.x - x) > 10 ||
721 Math.abs(this.drapSelect_.y - y) > 10 ||
/arkcompiler/ets_runtime/ecmascript/base/
Dnumber_helper.cpp169 return DoubleToFixed(thread, number, std::abs(radixDigit)); in DoubleToPrecision()
/arkcompiler/ets_runtime/ecmascript/ts_types/
Dlib_ark_builtins.d.ts321 static abs(x: number): number;

12