Searched refs:abs (Results 1 - 25 of 910) 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{{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{{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/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/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/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/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/skia/src/core/
H A DSkTime.cpp15 int timeZoneHours = abs(timeZoneMinutes) / 60;
16 timeZoneMinutes = abs(timeZoneMinutes) % 60;
/external/vixl/examples/
H A Dabs.cc33 // int64_t abs(int64_t x)
55 Label abs; local
56 masm.Bind(&abs);
63 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&abs));
64 printf("abs(%ld) = %ld\n", input_value, simulator.xreg(0));
/external/chromium-trace/trace-viewer/tracing/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/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/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/jmonkeyengine/engine/src/desktop/jme3tools/navigation/
H A DNavCalculator.java100 distance = (float) Math.abs(dLat / Math.cos(Math.toRadians(trueCourse)));
121 double sgnDLong = 0 - (dLong / Math.abs(dLong));
122 if (Math.abs(dLong) > 180 * 60) {
123 dLong = (360 * 60 - Math.abs(dLong)) * sgnDLong;
129 redist = Math.abs(dLong);
131 redist = Math.abs(dLong * (float) Math.cos(p1.getLatitude() * 2 * Math.PI / 360));
156 return Math.abs(tc);
161 return 180 - Math.abs(tc);
166 return 180 + Math.abs(tc);
171 return 360 - Math.abs(t
[all...]
/external/toybox/toys/lsb/
H A Dumount.c138 char *abs = xabspath(*optargs, 0); local
140 for (ml = abs ? mlrev : 0; ml; ml = ml->prev) {
141 if (!strcmp(ml->dir, abs)) break;
142 if (!strcmp(ml->device, abs)) {
143 free(abs);
144 abs = ml->dir;
149 do_umount(abs ? abs : *optargs, ml ? ml->device : 0, flags);
150 if (ml && abs != ml->dir) free(abs);
[all...]
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/
H A DSimpleRealPointChecker.java78 final double difference = FastMath.abs(p[i] - c[i]);
79 final double size = FastMath.max(FastMath.abs(p[i]), FastMath.abs(c[i]));
H A DSimpleScalarValueChecker.java77 final double difference = FastMath.abs(p - c);
78 final double size = FastMath.max(FastMath.abs(p), FastMath.abs(c));
H A DSimpleVectorialPointChecker.java80 final double difference = FastMath.abs(pi - ci);
81 final double size = FastMath.max(FastMath.abs(pi), FastMath.abs(ci));
H A DSimpleVectorialValueChecker.java80 final double difference = FastMath.abs(pi - ci);
81 final double size = FastMath.max(FastMath.abs(pi), FastMath.abs(ci));
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/filter/
H A DOptimizedErode.java88 if (Math.abs(h - hV) > this.talus && Math.abs(h - tmp[idxVL]) > this.talus || vertT) {
91 if (Math.abs(h - hV) <= this.talus) {
97 if (Math.abs(h - hH) > this.talus && Math.abs(h - tmp[idxHL]) > this.talus || horizT) {
100 if (Math.abs(h - hH) <= this.talus) {
/external/apache-commons-math/src/main/java/org/apache/commons/math/special/
H A DErf.java45 * <p>The value returned is always between -1 and 1 (inclusive). If {@code abs(x) > 40}, then
55 if (FastMath.abs(x) > 40) {
74 * <p>The value returned is always between 0 and 2 (inclusive). If {@code abs(x) > 40}, then
85 if (FastMath.abs(x) > 40) {
/external/eigen/blas/f2c/
H A Ddatatypes.h17 #define abs(x) ((x) >= 0 ? (x) : -(x)) macro
18 #define dabs(x) (doublereal)abs(x)

Completed in 2726 milliseconds

1234567891011>>