/external/v8/test/mjsunit/ |
D | 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 …]
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Math/ |
D | 15.8.2.1.js | 49 …tem++] = new TestCase( SECTION, "Math.abs.length", 1, Math.abs.length ); 51 …ray[item++] = new TestCase( SECTION, "Math.abs()", Number.NaN, Math.abs() ); 52 …em++] = new TestCase( SECTION, "Math.abs( void 0 )", Number.NaN, Math.abs(void 0) ); 53 …item++] = new TestCase( SECTION, "Math.abs( null )", 0, Math.abs(null) ); 54 …item++] = new TestCase( SECTION, "Math.abs( true )", 1, Math.abs(true) ); 55 …tem++] = new TestCase( SECTION, "Math.abs( false )", 0, Math.abs(false) ); 56 …w TestCase( SECTION, "Math.abs( string primitive)", Number.NaN, Math.abs("a string primitive… 57 …w TestCase( SECTION, "Math.abs( string object )", Number.NaN, Math.abs(new String( 'a Stri… 58 …] = new TestCase( SECTION, "Math.abs( Number.NaN )", Number.NaN, Math.abs(Number.NaN) ); 60 …w TestCase( SECTION, "Math.abs(0)", 0, Math.abs( 0 ) … [all …]
|
/external/jmonkeyengine/engine/src/desktop/jme3tools/navigation/ |
D | NavCalculator.java | 100 distance = (float) Math.abs(dLat / Math.cos(Math.toRadians(trueCourse))); in mercatorSailing() 121 double sgnDLong = 0 - (dLong / Math.abs(dLong)); in planeSailing() 122 if (Math.abs(dLong) > 180 * 60) { in planeSailing() 123 dLong = (360 * 60 - Math.abs(dLong)) * sgnDLong; in planeSailing() 129 redist = Math.abs(dLong); in planeSailing() 131 redist = Math.abs(dLong * (float) Math.cos(p1.getLatitude() * 2 * Math.PI / 360)); in planeSailing() 156 return Math.abs(tc); in convertCourse() 161 return 180 - Math.abs(tc); in convertCourse() 166 return 180 + Math.abs(tc); in convertCourse() 171 return 360 - Math.abs(tc); in convertCourse() [all …]
|
D | Coordinate.java | 79 … minsDecMins = Double.parseDouble(form.format((Math.abs(decCoordinate) - Math.abs(deg)) * 60)); in Coordinate() 142 str = su.padNumZero(Math.abs(deg), 2); in toStringDegMin() 143 … str += "\u00b0" + su.padNumZero(Math.abs(minsDecMins), 2, MINPRECISION) + "'" + quad; in toStringDegMin() 151 str = su.padNumZero(Math.abs(deg), 3); in toStringDegMin() 152 … str += "\u00b0" + su.padNumZero(Math.abs(minsDecMins), 2, MINPRECISION) + "'" + quad; in toStringDegMin() 191 if (Math.abs(decCoordinate) > 90.0) { in verify() 197 if (Math.abs(decCoordinate) > 180) { in verify()
|
/external/jmonkeyengine/engine/src/core/com/jme3/math/ |
D | Eigen3f.java | 148 float max = FastMath.abs(mat.m00); in scaleMatrix() 149 float abs = FastMath.abs(mat.m01); in scaleMatrix() local 151 if (abs > max) { in scaleMatrix() 152 max = abs; in scaleMatrix() 154 abs = FastMath.abs(mat.m02); in scaleMatrix() 155 if (abs > max) { in scaleMatrix() 156 max = abs; in scaleMatrix() 158 abs = FastMath.abs(mat.m11); in scaleMatrix() 159 if (abs > max) { in scaleMatrix() 160 max = abs; in scaleMatrix() [all …]
|
/external/webkit/Source/JavaScriptCore/wtf/ |
D | AVLTree.h | 144 Abstractor& abstractor() { return abs; } in abstractor() 156 void purge() { abs.root = null(); } in purge() 158 bool is_empty() { return abs.root == null(); } in is_empty() 160 AVLTree() { abs.root = null(); } in AVLTree() 179 handle h = tree_->abs.root; 225 handle h = tree_->abs.root; in start_iter_least() 243 handle h = tree_->abs.root; in start_iter_greatest() 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); } in cmp_k_n() 338 int cmp_n_n(handle h1, handle h2) { return tree_->abs.compare_node_node(h1, h2); } in cmp_n_n() [all …]
|
/external/mesa3d/src/glsl/builtins/ir/ |
D | asin | 15 (expression float abs (var_ref x)))) 19 (expression float abs (var_ref x)) 24 (expression float abs (var_ref x)))))))))))) 39 (expression vec2 abs (var_ref x)))) 43 (expression vec2 abs (var_ref x)) 48 (expression vec2 abs (var_ref x)))))))))))) 63 (expression vec3 abs (var_ref x)))) 67 (expression vec3 abs (var_ref x)) 72 (expression vec3 abs (var_ref x)))))))))))) 87 (expression vec4 abs (var_ref x)))) [all …]
|
D | fwidth | 6 (expression float abs (expression float dFdx (var_ref p))) 7 (expression float abs (expression float dFdy (var_ref p))))))) 13 (expression vec2 abs (expression vec2 dFdx (var_ref p))) 14 (expression vec2 abs (expression vec2 dFdy (var_ref p))))))) 20 (expression vec3 abs (expression vec3 dFdx (var_ref p))) 21 (expression vec3 abs (expression vec3 dFdy (var_ref p))))))) 27 (expression vec4 abs (expression vec4 dFdx (var_ref p))) 28 (expression vec4 abs (expression vec4 dFdy (var_ref p)))))))
|
D | abs | 1 ((function abs 5 ((return (expression float abs (var_ref arg0))))) 10 ((return (expression vec2 abs (var_ref arg0))))) 15 ((return (expression vec3 abs (var_ref arg0))))) 20 ((return (expression vec4 abs (var_ref arg0)))))
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Expressions/ |
D | 11.4.8.js | 86 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( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) { 128 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16);
|
D | 11.7.1.js | 93 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( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) { 135 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16);
|
D | 11.7.3.js | 98 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( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) { 140 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16);
|
D | 11.7.2.js | 107 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( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) { 149 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16);
|
D | 11.10-3.js | 94 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( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) { 136 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16);
|
D | 11.10-1.js | 95 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( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) { 137 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16);
|
D | 11.10-2.js | 94 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( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) { 136 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16);
|
/external/jmonkeyengine/engine/src/core-effects/Common/MatDefs/SSAO/ |
D | ssaoBlur.frag | 50 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 77 float coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 83 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 89 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 95 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 101 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 107 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 113 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 119 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 125 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); [all …]
|
D | ssaoBlur15.frag | 51 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 78 float coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 84 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 90 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 96 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 102 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 108 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 114 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 120 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); 126 coefZ = 1.0 / (epsilon + abs(Zp - zTmp)); [all …]
|
/external/stlport/stlport/stl/ |
D | _cstdlib.h | 113 inline int abs(int __x) { return _STLP_VENDOR_CSTD::abs(__x); } in abs() function 121 # pragma function (abs) 131 inline long abs(long __x) { return _STLP_VENDOR_CSTD::labs(__x); } in abs() function 143 # pragma intrinsic (abs) 151 inline _STLP_LONG_LONG abs(_STLP_LONG_LONG __x) { return _STLP_VENDOR_CSTD::llabs(__x); } in abs() function 154 inline _STLP_LONG_LONG abs(_STLP_LONG_LONG __x) { return ::llabs(__x); } in abs() function 158 inline _STLP_LONG_LONG abs(_STLP_LONG_LONG __x) { return __x < 0 ? -__x : __x; } in abs() function 175 using ::abs;
|
/external/libvpx/vp8/common/x86/ |
D | loopfilter_mmx.asm | 55 por mm1, mm2 ; abs(q3-q2) 63 por mm4, mm6 ; abs(q2-q1) 72 por mm4, mm3 ; abs(q0-q1) 85 por mm4, mm2 ; abs(p3 - p2) 94 por mm4, mm5 ; abs(p2 - p1) 104 por mm4, mm3 ; abs(p1 - p0) 113 por mm2, mm3 ; abs(p1-q1) 115 psrlw mm2, 1 ; abs(p1-q1)/2 121 por mm5, mm3 ; abs(p0 - q0) 122 paddusb mm5, mm5 ; abs(p0-q0)*2 [all …]
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/filter/ |
D | OptimizedErode.java | 88 if (Math.abs(h - hV) > this.talus && Math.abs(h - tmp[idxVL]) > this.talus || vertT) { in filter() 91 if (Math.abs(h - hV) <= this.talus) { in filter() 97 if (Math.abs(h - hH) > this.talus && Math.abs(h - tmp[idxHL]) > this.talus || horizT) { in filter() 100 if (Math.abs(h - hH) <= this.talus) { in filter()
|
/external/jmonkeyengine/engine/src/core/com/jme3/bounding/ |
D | BoundingBox.java | 294 box.xExtent = FastMath.abs(vars.vect2.getX()); in transform() 295 box.yExtent = FastMath.abs(vars.vect2.getY()); in transform() 296 box.zExtent = FastMath.abs(vars.vect2.getZ()); in transform() 326 box.xExtent = FastMath.abs(vars.vect1.getX()); in transform() 327 box.yExtent = FastMath.abs(vars.vect1.getY()); in transform() 328 box.zExtent = FastMath.abs(vars.vect1.getZ()); in transform() 343 float radius = FastMath.abs(xExtent * plane.getNormal().getX()) in whichSide() 344 + FastMath.abs(yExtent * plane.getNormal().getY()) in whichSide() 345 + FastMath.abs(zExtent * plane.getNormal().getZ()); in whichSide() 591 if (FastMath.abs(center.x - bs.center.x) < bs.getRadius() in intersectsSphere() [all …]
|
/external/libvpx/vp8/common/ |
D | loopfilter_filters.c | 31 mask |= (abs(p3 - p2) > limit) * -1; in vp8_filter_mask() 32 mask |= (abs(p2 - p1) > limit) * -1; in vp8_filter_mask() 33 mask |= (abs(p1 - p0) > limit) * -1; in vp8_filter_mask() 34 mask |= (abs(q1 - q0) > limit) * -1; in vp8_filter_mask() 35 mask |= (abs(q2 - q1) > limit) * -1; in vp8_filter_mask() 36 mask |= (abs(q3 - q2) > limit) * -1; in vp8_filter_mask() 37 mask |= (abs(p0 - q0) * 2 + abs(p1 - q1) / 2 > flimit * 2 + limit) * -1; in vp8_filter_mask() 46 hev |= (abs(p1 - p0) > thresh) * -1; in vp8_hevmask() 47 hev |= (abs(q1 - q0) > thresh) * -1; in vp8_hevmask() 287 signed char mask = (abs(p0 - q0) * 2 + abs(p1 - q1) / 2 <= flimit * 2 + limit) * -1; in vp8_simple_filter_mask()
|
/external/libvpx/vpx_scale/generic/ |
D | bicubic_scaler.c | 202 if ((abs(fixed0) > (abs(real0) + 1)) || (abs(fixed0) < (abs(real0) - 1))) 208 if ((abs(fixed1) > (abs(real1) + 1)) || (abs(fixed1) < (abs(real1) - 1))) 214 if ((abs(fixed2) > (abs(real2) + 1)) || (abs(fixed2) < (abs(real2) - 1))) 220 if ((abs(fixed3) > (abs(real3) + 1)) || (abs(fixed3) < (abs(real3) - 1)))
|
/external/dropbear/libtomcrypt/testprof/ |
D | pkcs_1_test.c | 31 lparamlen = abs(rand()) % 17; in pkcs_1_test() 34 saltlen = abs(rand()) % 17; in pkcs_1_test() 37 modlen = 800 + (abs(rand()) % 224); in pkcs_1_test() 66 buf[0][i1 = abs(rand()) % l3] ^= 1; in pkcs_1_test() 70 buf[1][i2 = abs(rand()) % (l1 - 1)] ^= 1; in pkcs_1_test()
|