Searched refs:abs (Results 1 - 25 of 1161) 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/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/libcxx/test/std/utilities/time/time.duration/time.duration.alg/
H A Dabs.fail.cpp16 // constexpr duration<Rep, Period> abs(duration<Rep, Period> d)
26 std::chrono::abs(unsigned_secs(0));
/external/swiftshader/src/Common/
H A DHalf.cpp23 unsigned int abs = fp32i & 0x7FFFFFFF; local
25 if(abs > 0x47FFEFFF) // Infinity
29 else if(abs < 0x38800000) // Denormal
31 unsigned int mantissa = (abs & 0x007FFFFF) | 0x00800000;
32 int e = 113 - (abs >> 23);
36 abs = mantissa >> e;
40 abs = 0;
43 fp16i = sign | (abs + 0x00000FFF + ((abs >> 13) & 1)) >> 13;
47 fp16i = sign | (abs
[all...]
/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/vixl/examples/aarch64/
H A Dabs.cc32 // int64_t abs(int64_t x)
52 Label abs; local
53 masm.Bind(&abs);
60 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&abs));
61 printf("abs(%" PRId64 ") = %" PRId64 "\n",
/external/fec/
H A Dpeakval_mmx.c14 a = abs(*b);
27 a = abs(*b);
H A Dpeakval_sse.c15 a = abs(*b);
28 a = abs(*b);
H A Dpeakval_sse2.c14 a = abs(*b);
27 a = abs(*b);
/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/libcxx/include/
H A Dstdlib.h67 int abs( int j);
68 long abs( long j);
69 long long abs(long long j); // C++0X
104 #undef abs macro
115 inline _LIBCPP_INLINE_VISIBILITY long abs( long __x) _NOEXCEPT {return labs(__x);}
117 inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT {return llabs(__x);}
/external/llvm/test/MC/AMDGPU/
H A Dvop3.s55 v_cmp_lt_f32 s[2:3] -abs(v4), v6
63 v_cmp_lt_f32 s[2:3] v4, -abs(v6)
71 v_cmp_lt_f32 s[2:3] -abs(v4), -abs(v6)
162 v_fract_f32 v1, abs(v2)
170 v_fract_f32 v1, -abs(v2)
281 v_add_f64 v[0:1], abs(v[2:3]), v[5:6]
289 v_add_f64_e64 v[0:1], abs(v[2:3]), v[5:6]
297 v_add_f64 v[0:1], v[2:3], abs(v[5:6])
305 v_add_f64_e64 v[0:1], v[2:3], abs(
[all...]
/external/vixl/examples/aarch32/
H A Dabs.cc32 // int32_t abs(int32_t x)
47 Label abs; local
48 masm.Bind(&abs);
60 memory.GetEntryPoint<int32_t (*)(int32_t)>(abs);
63 printf("native: abs(%d) = %d\n", input_value, output_value);
/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/clang/test/CodeGen/
H A Dpr9614.c7 extern int abs_alias (int) __asm ("abs");
8 inline __attribute__ ((__always_inline__)) int abs (int x) { function
27 abs(0);
35 // CHECK: call i32 @abs(i32 0)
42 // CHECK: declare i32 @abs(i32
/external/eigen/blas/f2c/
H A Ddatatypes.h17 #define abs(x) ((x) >= 0 ? (x) : -(x)) macro
18 #define dabs(x) (doublereal)abs(x)
/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);

Completed in 499 milliseconds

1234567891011>>