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

1234567891011>>

/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/v8/test/mjsunit/regress/
H A Dregress-1177518.js33 Math.abs = 0;
38 // uses Math.abs, Math.floor and isFinite
H A Dregress-1898.js31 Math.log(Math.min(0.1, Math.abs(x)));
H A Dregress-636.js31 value = Math.abs(1025);
H A Dregress-925537.js30 if (Math.abs(expected - actual) > delta) {
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Math/
H A D15.8.2.1.js24 ECMA Section: 15.8.2.1 abs( x )
37 var TITLE = "Math.abs()";
49 array[item++] = new TestCase( SECTION, "Math.abs.length", 1, Math.abs.length );
51 array[item++] = new TestCase( SECTION, "Math.abs()", Number.NaN, Math.abs() );
52 array[item++] = new TestCase( SECTION, "Math.abs( void 0 )", Number.NaN, Math.abs(void 0) );
53 array[item++] = new TestCase( SECTION, "Math.abs( null )", 0, Math.abs(nul
[all...]
/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...]
H A DCoordinate.java79 minsDecMins = Double.parseDouble(form.format((Math.abs(decCoordinate) - Math.abs(deg)) * 60));
142 str = su.padNumZero(Math.abs(deg), 2);
143 str += "\u00b0" + su.padNumZero(Math.abs(minsDecMins), 2, MINPRECISION) + "'" + quad;
151 str = su.padNumZero(Math.abs(deg), 3);
152 str += "\u00b0" + su.padNumZero(Math.abs(minsDecMins), 2, MINPRECISION) + "'" + quad;
191 if (Math.abs(decCoordinate) > 90.0) {
197 if (Math.abs(decCoordinate) > 180) {
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Expressions/
H A D11.4.8.js86 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY ) {
89 return ( sign * Math.floor(Math.abs(n)) );
95 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) {
99 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32);
108 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) {
111 n = sign * Math.floor( Math.abs(n) )
124 if ( Math.abs(
[all...]
H A D11.7.1.js93 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY ) {
96 return ( sign * Math.floor(Math.abs(n)) );
102 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) {
106 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32);
115 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) {
118 n = sign * Math.floor( Math.abs(n) )
131 if ( Math.abs(
[all...]
H A D11.7.2.js107 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY ) {
110 return ( sign * Math.floor(Math.abs(n)) );
116 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) {
120 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32);
129 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) {
132 n = sign * Math.floor( Math.abs(n) )
145 if ( Math.abs(
[all...]
H A D11.7.3.js98 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY ) {
101 return ( sign * Math.floor(Math.abs(n)) );
107 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) {
111 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32);
120 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) {
123 n = sign * Math.floor( Math.abs(n) )
136 if ( Math.abs(
[all...]
H A D11.10-1.js95 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY ) {
98 return ( sign * Math.floor(Math.abs(n)) );
104 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) {
108 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32);
117 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) {
120 n = sign * Math.floor( Math.abs(n) )
133 if ( Math.abs(
[all...]
H A D11.10-2.js94 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY ) {
97 return ( sign * Math.floor(Math.abs(n)) );
103 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) {
107 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32);
116 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) {
119 n = sign * Math.floor( Math.abs(n) )
132 if ( Math.abs(
[all...]
H A D11.10-3.js94 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY ) {
97 return ( sign * Math.floor(Math.abs(n)) );
103 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) {
107 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32);
116 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) {
119 n = sign * Math.floor( Math.abs(n) )
132 if ( Math.abs(
[all...]
/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/dropbear/libtommath/
H A Dbn_mp_rand.c32 d = ((mp_digit) abs (rand ())) & MP_MASK;
44 if ((res = mp_add_d (a, ((mp_digit) abs (rand ())), a)) != MP_OKAY) {
/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/unittests/Support/
H A DTimeValue.cpp20 EXPECT_TRUE(abs(static_cast<long>(now_t - now.toEpochTime())) < 2);
/external/jmonkeyengine/engine/src/core/com/jme3/math/
H A DEigen3f.java148 float max = FastMath.abs(mat.m00);
149 float abs = FastMath.abs(mat.m01);
151 if (abs > max) {
152 max = abs;
154 abs = FastMath.abs(mat.m02);
155 if (abs > max) {
156 max = abs;
158 abs
[all...]
/external/webkit/Source/JavaScriptCore/wtf/
H A DAVLTree.h144 Abstractor& abstractor() { return abs; }
156 void purge() { abs.root = null(); }
158 bool is_empty() { return abs.root == null(); }
160 AVLTree() { abs.root = null(); }
179 handle h = tree_->abs.root;
225 handle h = tree_->abs.root;
243 handle h = tree_->abs.root;
262 return depth == 0 ? tree_->abs.root : path_h[depth - 1];
337 int cmp_k_n(key k, handle h) { return tree_->abs.compare_key_node(k, h); }
338 int cmp_n_n(handle h1, handle h2) { return tree_->abs
[all...]
/external/stlport/stlport/stl/
H A D_cstdlib.h113 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 overloa
[all...]
/external/webkit/Source/WebCore/platform/win/
H A DBitmapInfo.h53 unsigned width() const { return abs(bmiHeader.biWidth); }
54 unsigned height() const { return abs(bmiHeader.biHeight); }
/external/dropbear/libtomcrypt/testprof/
H A Dpkcs_1_test.c31 lparamlen = abs(rand()) % 17;
34 saltlen = abs(rand()) % 17;
37 modlen = 800 + (abs(rand()) % 224);
66 buf[0][i1 = abs(rand()) % l3] ^= 1;
70 buf[1][i2 = abs(rand()) % (l1 - 1)] ^= 1;
/external/libvpx/vp8/common/
H A Dloopfilter_filters.c31 mask |= (abs(p3 - p2) > limit) * -1;
32 mask |= (abs(p2 - p1) > limit) * -1;
33 mask |= (abs(p1 - p0) > limit) * -1;
34 mask |= (abs(q1 - q0) > limit) * -1;
35 mask |= (abs(q2 - q1) > limit) * -1;
36 mask |= (abs(q3 - q2) > limit) * -1;
37 mask |= (abs(p0 - q0) * 2 + abs(p1 - q1) / 2 > flimit * 2 + limit) * -1;
46 hev |= (abs(p1 - p0) > thresh) * -1;
47 hev |= (abs(q
[all...]

Completed in 3450 milliseconds

1234567891011>>