Searched refs:abs (Results 1 - 25 of 1291) sorted by relevance

1234567891011>>

/external/clang/test/Sema/
H A Dwarn-absolute-value-header.c4 int abs(int);
12 (void)abs(i);
14 // Remove abs call
15 (void)abs(u);
17 // expected-note@-2{{remove the call to 'abs' since unsigned values cannot be negative}}
23 (void)abs(ll);
24 // expected-warning@-1{{absolute value function 'abs' given an argument of type 'long long' but has parameter of type 'int' which may cause truncation of value}}
27 (void)abs(f);
28 // expected-warning@-1{{using integer absolute value function 'abs' when argument is of floating point type}}
31 (void)abs(
[all...]
/external/clang/test/SemaCXX/
H A Dwarn-absolute-value-header.cpp5 int abs(int);
10 int abs(int);
11 float abs(float);
16 (void)abs(d);
17 // expected-warning@-1{{using integer absolute value function 'abs' when argument is of floating point type}}
18 // expected-note@-2{{use function 'std::abs' instead}}
19 // expected-note@-3{{please include the header <cmath> or explicitly provide a declaration for 'std::abs'}}
20 // CHECK: fix-it:"{{.*}}":{[[@LINE-4]]:9-[[@LINE-4]]:12}:"std::abs"
24 // expected-note@-2{{use function 'std::abs' instead}}
25 // expected-note@-3{{please include the header <cmath> or explicitly provide a declaration for 'std::abs'}}
[all...]
H A Dwarn-absolute-value.cpp5 int abs(int);
21 int abs(int);
22 long int abs(long int);
23 long long int abs(long long int);
26 float abs(float);
27 double abs(double);
28 long double abs(long double);
31 double abs(T);
36 (void)std::abs(x);
38 (void)abs(
[all...]
/external/chromium_org/v8/test/mjsunit/
H A Dmath-abs.js36 assertEquals(0, Math.abs(0));
37 assertEquals(0, Math.abs(zero()));
38 assertEquals(0, Math.abs(-0));
39 assertEquals(Infinity, Math.abs(Infinity));
40 assertEquals(Infinity, Math.abs(-Infinity));
41 assertEquals(NaN, Math.abs(NaN));
42 assertEquals(NaN, Math.abs(-NaN));
43 assertEquals('Infinity', Math.abs(Number('+Infinity')).toString());
44 assertEquals('Infinity', Math.abs(Number('-Infinity')).toString());
45 assertEquals('NaN', Math.abs(Na
[all...]
/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-1177518.js33 Math.abs = 0;
38 // uses Math.abs, Math.floor and isFinite
H A Dregress-412162.js8 Math.abs(-NaN).toString();
H A Dregress-1898.js31 Math.log(Math.min(0.1, Math.abs(x)));
H A Dregress-636.js31 value = Math.abs(1025);
/external/eigen/doc/snippets/
H A DCwise_abs.cpp2 cout << v.abs() << endl;
H A DMatrixBase_array_const.cpp2 cout << "the absolute values:" << endl << v.array().abs() << endl;
3 cout << "the absolute values plus one:" << endl << v.array().abs()+1 << endl;
/external/eigen/doc/examples/
H A DTutorial_ArrayClass_cwise_other.cpp13 cout << "a.abs() =" << endl
14 << a.abs() << endl;
15 cout << "a.abs().sqrt() =" << endl
16 << a.abs().sqrt() << endl;
17 cout << "a.min(a.abs().sqrt()) =" << endl
18 << a.min(a.abs().sqrt()) << endl;
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/arch/x86/tests/
H A Dripseg.asm4 default abs
12 mov rbx, [abs es:foo]
13 mov rbx, [abs fs:foo]
14 mov rbx, [abs gs:foo]
17 ;mov rbx, [es:abs foo]
18 ;mov rbx, [fs:abs foo]
28 mov rbx, [abs es:foo]
29 mov rbx, [abs fs:foo]
30 mov rbx, [abs gs:foo]
33 ;mov rbx, [es:abs fo
[all...]
H A Driprel2.asm3 default abs ; default abs, except for explicit rel
15 mov rax,[abs foo]
16 mov rbx,[abs foo]
17 mov rax,[abs dword foo]
18 mov rax,[abs qword foo]
30 mov rax,[abs es:foo]
31 mov rbx,[abs es:foo]
32 mov rax,[abs dword es:foo]
33 mov rax,[abs qwor
[all...]
/external/vixl/examples/
H A Dabs.cc33 // int64_t abs(int64_t x)
54 Label abs; local
55 masm.Bind(&abs);
62 simulator.RunFrom(abs.target());
63 printf("abs(%ld) = %ld\n", input_value, simulator.xreg(0));
/external/chromium-trace/trace-viewer/third_party/gl-matrix/spec/helpers/
H A Dspec-helper.js13 return Math.abs(this.actual - expected) < EPSILON;
19 if (Math.abs(this.actual[i] - expected[i]) >= EPSILON)
/external/chromium_org/v8/test/webkit/
H A Ddfg-intrinsic-osr-exit.js33 foo([Math.abs], {f:5});
35 shouldBe("foo([Math.abs], {f:5})", "5");
38 shouldBe("foo([Math.abs], {f:5.5})", "5.5");
/external/eigen/test/
H A Dnesting_ops.cpp22 VERIFY_IS_APPROX( (m.transpose() * m).diagonal().array().abs().sum(), (m.transpose() * m).diagonal().array().abs().sum() );
24 VERIFY_IS_APPROX( (m.transpose() * m).array().abs().sum(), (m.transpose() * m).array().abs().sum() );
/external/chromium_org/third_party/yasm/source/patched-yasm/libyasm/
H A Dvalue.c50 value->abs = e;
68 value->abs = NULL;
85 value->abs = orig->abs ? yasm_expr_copy(orig->abs) : NULL;
102 if (value->abs)
103 yasm_expr_destroy(value->abs);
104 value->abs = NULL;
462 if (!value->abs)
465 value->abs
[all...]
/external/chromium_org/ui/gfx/geometry/
H A Drect_conversions.cc48 DCHECK(std::abs(min_x - float_min_x) < 0.01f);
49 DCHECK(std::abs(min_y - float_min_y) < 0.01f);
50 DCHECK(std::abs(max_x - float_max_x) < 0.01f);
51 DCHECK(std::abs(max_y - float_max_y) < 0.01f);
68 (std::abs(min_x - float_min_x) < distance) &&
69 (std::abs(min_y - float_min_y) < distance) &&
70 (std::abs(max_x - float_max_x) < distance) &&
71 (std::abs(max_y - float_max_y) < distance);
/external/eigen/unsupported/Eigen/src/NonLinearOptimization/
H A Dchkder.h20 using std::abs;
36 temp = eps * abs(x[j]);
46 temp = abs(x[j]);
53 if (fvec[i] != 0. && fvecp[i] != 0. && abs(fvecp[i] - fvec[i]) >= epsf * abs(fvec[i]))
54 temp = eps * abs((fvecp[i] - fvec[i]) / eps - err[i]) / (abs(fvec[i]) + abs(fvecp[i]));
/external/jsilver/src/com/google/clearsilver/jsilver/functions/numeric/
H A DAbsFunction.java23 import static java.lang.Math.abs;
36 return literalConstant(abs(arg.asNumber()), arg);
/external/llvm/test/MC/AArch64/
H A Dneon-scalar-abs.s9 abs d29, d24
11 // CHECK: abs d29, d24 // encoding: [0x1d,0xbb,0xe0,0x5e]
/external/eigen/unsupported/Eigen/src/IterativeSolvers/
H A DScaling.h45 using std::abs;
95 if ( Dr(it.row()) < abs(it.value()) )
96 Dr(it.row()) = abs(it.value());
98 if ( Dc(it.col()) < abs(it.value()) )
99 Dc(it.col()) = abs(it.value());
121 if ( DrRes(it.row()) < abs(it.value()) )
122 DrRes(it.row()) = abs(it.value());
124 if ( DcRes(it.col()) < abs(it.value()) )
125 DcRes(it.col()) = abs(it.value());
128 DrRes.array() = (1-DrRes.array()).abs();
[all...]
/external/libcxx/test/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.normal/
H A Deval.pass.cpp63 assert(std::abs((mean - x_mean) / x_mean) < 0.01);
64 assert(std::abs((var - x_var) / x_var) < 0.01);
65 assert(std::abs(skew - x_skew) < 0.01);
66 assert(std::abs(kurtosis - x_kurtosis) < 0.01);
H A Deval_param.pass.cpp64 assert(std::abs((mean - x_mean) / x_mean) < 0.01);
65 assert(std::abs((var - x_var) / x_var) < 0.01);
66 assert(std::abs(skew - x_skew) < 0.01);
67 assert(std::abs(kurtosis - x_kurtosis) < 0.01);

Completed in 1252 milliseconds

1234567891011>>