/external/clang/test/Sema/ |
warn-absolute-value-header.c | 4 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(d) [all...] |
/external/clang/test/SemaCXX/ |
warn-absolute-value-header.cpp | 5 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...] |
warn-absolute-value.cpp | 5 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(x) [all...] |
/external/eigen/doc/snippets/ |
Cwise_abs.cpp | 2 cout << v.abs() << endl;
|
MatrixBase_array_const.cpp | 2 cout << "the absolute values:" << endl << v.array().abs() << endl; 3 cout << "the absolute values plus one:" << endl << v.array().abs()+1 << endl;
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/ |
TestAbs.rs | 24 return abs(inV); 28 return abs(inV); 32 return abs(inV); 36 return abs(inV); 40 return abs(inV); 44 return abs(inV); 48 return abs(inV); 52 return abs(inV); 56 return abs(inV); 60 return abs(inV) [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_static/d/ |
T_invoke_static_1.java | 22 return Math.abs(-1234567);
|
T_invoke_static_19.java | 22 return Math.abs(-1234567);
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_static_range/d/ |
T_invoke_static_range_1.java | 22 return Math.abs(-1234567);
|
T_invoke_static_range_19.java | 22 return Math.abs(-1234567);
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/ |
CompareUtils.java | 10 int diff = Math.abs(Color.red(color) - Color.red(expectedColor)) 11 + Math.abs(Color.green(color) - Color.green(expectedColor)) 12 + Math.abs(Color.blue(color) - Color.blue(expectedColor));
|
/external/eigen/doc/examples/ |
Tutorial_ArrayClass_cwise_other.cpp | 13 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/v8/test/mjsunit/ |
math-abs.js | 36 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(NaN).toString()) [all...] |
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
CodePointUtils.java | 75 final int r = Math.abs(random.nextInt()); 104 final int count = 1 + (Math.abs(random.nextInt()) % 5) 105 + (Math.abs(random.nextInt()) % 5) 106 + (Math.abs(random.nextInt()) % 5) 107 + (Math.abs(random.nextInt()) % 5) 108 + (Math.abs(random.nextInt()) % 5) 109 + (Math.abs(random.nextInt()) % 5) 110 + (Math.abs(random.nextInt()) % 5) 111 + (Math.abs(random.nextInt()) % 5); 113 builder.appendCodePoint(codePointSet[Math.abs(random.nextInt()) % codePointSet.length]) [all...] |
/frameworks/compile/mclinker/lib/Target/X86/ |
X86RelocationFunctions.h | 18 DECL_X86_32_APPLY_RELOC_FUNC(abs) \ 34 { &abs, 1, "R_386_32", 32 }, \ 53 { &abs, 20, "R_386_16", 16 }, \ 55 { &abs, 22, "R_386_8", 8 }, \ 85 DECL_X86_64_APPLY_RELOC_FUNC(abs) \ 94 { &abs, 1, "R_X86_64_64", 64 }, \ 103 { &abs, 10, "R_X86_64_32", 32 }, \ 105 { &abs, 12, "R_X86_64_16", 16 }, \ 107 { &abs, 14, "R_X86_64_8", 8 }, \
|
/external/vixl/examples/ |
abs.cc | 33 // 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));
|
/bionic/libc/upstream-freebsd/lib/libc/stdlib/ |
abs.c | 31 static char sccsid[] = "@(#)abs.c 8.1 (Berkeley) 6/4/93"; 39 abs(j) function
|
/external/eigen/test/ |
nesting_ops.cpp | 22 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/jmonkeyengine/engine/src/desktop/jme3tools/navigation/ |
NavCalculator.java | 100 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(tc) [all...] |
/external/eigen/unsupported/Eigen/src/NonLinearOptimization/ |
chkder.h | 20 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/skia/src/core/ |
SkTime.cpp | 15 int timeZoneHours = abs(timeZoneMinutes) / 60; 16 timeZoneMinutes = abs(timeZoneMinutes) % 60;
|
/external/toybox/toys/lsb/ |
umount.c | 138 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...] |
/ndk/sources/cxx-stl/stlport/stlport/stl/ |
_cstdlib.h | 113 inline int abs(int __x) { return _STLP_VENDOR_CSTD::abs(__x); } function 121 # pragma function (abs) 124 //HP-UX native lib has abs() and div() functions in global namespace 131 inline long abs(long __x) { return _STLP_VENDOR_CSTD::labs(__x); } function 143 # pragma intrinsic (abs) 151 inline _STLP_LONG_LONG abs(_STLP_LONG_LONG __x) { return _STLP_VENDOR_CSTD::llabs(__x); } function 154 inline _STLP_LONG_LONG abs(_STLP_LONG_LONG __x) { return ::llabs(__x); } function 158 inline _STLP_LONG_LONG abs(_STLP_LONG_LONG __x) { return __x < 0 ? -__x : __x; } function 164 * problem we provide all abs overload before the 'using' call [all...] |
/prebuilts/ndk/5/sources/cxx-stl/stlport/stlport/stl/ |
_cstdlib.h | 113 inline int abs(int __x) { return _STLP_VENDOR_CSTD::abs(__x); } function 121 # pragma function (abs) 124 //HP-UX native lib has abs() and div() functions in global namespace 131 inline long abs(long __x) { return _STLP_VENDOR_CSTD::labs(__x); } function 143 # pragma intrinsic (abs) 151 inline _STLP_LONG_LONG abs(_STLP_LONG_LONG __x) { return _STLP_VENDOR_CSTD::llabs(__x); } function 154 inline _STLP_LONG_LONG abs(_STLP_LONG_LONG __x) { return ::llabs(__x); } function 158 inline _STLP_LONG_LONG abs(_STLP_LONG_LONG __x) { return __x < 0 ? -__x : __x; } function 164 * problem we provide all abs overload before the 'using' call [all...] |
/prebuilts/ndk/6/sources/cxx-stl/stlport/stlport/stl/ |
_cstdlib.h | 113 inline int abs(int __x) { return _STLP_VENDOR_CSTD::abs(__x); } function 121 # pragma function (abs) 124 //HP-UX native lib has abs() and div() functions in global namespace 131 inline long abs(long __x) { return _STLP_VENDOR_CSTD::labs(__x); } function 143 # pragma intrinsic (abs) 151 inline _STLP_LONG_LONG abs(_STLP_LONG_LONG __x) { return _STLP_VENDOR_CSTD::llabs(__x); } function 154 inline _STLP_LONG_LONG abs(_STLP_LONG_LONG __x) { return ::llabs(__x); } function 158 inline _STLP_LONG_LONG abs(_STLP_LONG_LONG __x) { return __x < 0 ? -__x : __x; } function 164 * problem we provide all abs overload before the 'using' call [all...] |