Searched refs:abs (Results 1 - 25 of 1666) 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/python/cpython3/Doc/includes/
H A Dturtle-star.py7 if abs(pos()) < 1:
/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/tensorflow/tensorflow/core/kernels/
H A Dcwise_op_gpu_abs.cu.cc22 DEFINE_UNARY6(abs, Eigen::half, float, double, int64, complex64, complex128);
H A Dcwise_op_abs.cc19 REGISTER5(UnaryOp, CPU, "Abs", functor::abs, float, Eigen::half, double, int32,
22 REGISTER2(UnaryOp, CPU, "ComplexAbs", functor::abs, complex64, complex128);
26 REGISTER4(UnaryOp, GPU, "Abs", functor::abs, float, Eigen::half, double, int64);
27 REGISTER2(UnaryOp, GPU, "ComplexAbs", functor::abs, complex64, complex128);
37 UnaryOp<CPUDevice, functor::abs<int32>>);
41 REGISTER3(UnaryOp, SYCL, "Abs", functor::abs, float, double, int64);
47 UnaryOp<CPUDevice, functor::abs<int32>>);
/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/eigen/test/
H A Dnumext.cpp17 VERIFY_IS_EQUAL(numext::abs(-T(1)), T(1));
18 VERIFY_IS_EQUAL(numext::abs(T(0)), T(0));
19 VERIFY_IS_EQUAL(numext::abs(T(1)), T(1));
28 VERIFY_IS_EQUAL(numext::abs(x), numext::abs(-x));
29 VERIFY( numext::abs(-x) >= Real(0));
31 VERIFY( numext::abs(x) >= Real(0));
32 VERIFY_IS_APPROX( numext::abs2(x), numext::abs2(numext::abs(x)) );
/external/libvpx/libvpx/vpx_dsp/arm/
H A Dsad_neon.c23 uint16x8_t abs = vabdl_u8(vget_low_u8(src_u8), vget_low_u8(ref_u8)); local
24 abs = vabal_u8(abs, vget_high_u8(src_u8), vget_high_u8(ref_u8));
25 return vget_lane_u32(horizontal_add_uint16x8(abs), 0);
35 uint16x8_t abs = vabdl_u8(vget_low_u8(src_u8), vget_low_u8(avg)); local
36 abs = vabal_u8(abs, vget_high_u8(src_u8), vget_high_u8(avg));
37 return vget_lane_u32(horizontal_add_uint16x8(abs), 0);
43 uint16x8_t abs = vdupq_n_u16(0); local
49 abs
60 uint16x8_t abs = vdupq_n_u16(0); local
79 uint16x8_t abs = vdupq_n_u16(0); local
95 uint16x8_t abs = vdupq_n_u16(0); local
133 uint16x8_t abs = vdupq_n_u16(0); local
150 uint16x8_t abs = vdupq_n_u16(0); local
189 uint16x8_t abs = vdupq_n_u16(0); local
210 uint16x8_t abs = vdupq_n_u16(0); local
[all...]
/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/ltp/testcases/misc/math/
H A DMakefile26 FILTER_OUT_DIRS := abs float
/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/pdfium/xfa/fxfa/parser/
H A Dcxfa_timezoneprovider.cpp20 m_tz.tzMinute = static_cast<int8_t>((abs(_timezone) % 3600) / 60);
28 static_cast<int8_t>((abs(static_cast<int>(timezone)) % 3600) / 60);
/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
100 #undef abs macro
111 inline _LIBCPP_INLINE_VISIBILITY long abs( long __x) _NOEXCEPT {return labs(__x);}
113 inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT {return llabs(__x);}

Completed in 927 milliseconds

1234567891011>>