Home
last modified time | relevance | path

Searched refs:abs (Results 1 – 25 of 150) sorted by relevance

123456

/external/webkit/JavaScriptCore/tests/mozilla/ecma/Math/
D15.8.2.1.js49 …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/clearsilver/cs/
Dtest_abs_max_min.cs2 abs(-10) = <?cs var:abs(-10) ?>
3 abs("-10") = <?cs var:abs("-10") ?>
4 abs("10") = <?cs var:abs("10") ?>
5 abs("0") = <?cs var:abs("0") ?>
8 abs(<?cs var:x ?>) = <?cs var:abs(x) ?>
Dtest_abs_max_min.cs.gold3 abs(-10) = 10
4 abs("-10") = 10
5 abs("10") = 10
6 abs("0") = 0
9 abs(-5) = 5
11 abs(-4) = 4
13 abs(-3) = 3
15 abs(-2) = 2
17 abs(-1) = 1
19 abs(0) = 0
[all …]
/external/webkit/JavaScriptCore/wtf/
DAVLTree.h143 Abstractor& abstractor() { return abs; } in abstractor()
155 void purge() { abs.root = null(); } in purge()
157 bool is_empty() { return abs.root == null(); } in is_empty()
159 AVLTree() { abs.root = null(); } in AVLTree()
178 handle h = tree_->abs.root;
224 handle h = tree_->abs.root; in start_iter_least()
242 handle h = tree_->abs.root; in start_iter_greatest()
261 return depth == 0 ? tree_->abs.root : path_h[depth - 1];
336 int cmp_k_n(key k, handle h) { return tree_->abs.compare_key_node(k, h); } in cmp_k_n()
337 int cmp_n_n(handle h1, handle h2) { return tree_->abs.compare_node_node(h1, h2); } in cmp_n_n()
[all …]
/external/webkit/JavaScriptCore/tests/mozilla/ecma/Expressions/
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( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) {
128 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16);
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( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) {
140 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16);
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( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) {
135 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16);
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( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) {
149 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16);
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( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) {
137 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16);
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( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) {
136 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16);
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( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) {
136 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16);
/external/webkit/WebCore/svg/
DSVGParserUtilities.cpp212 virtual void svgMoveTo(double x1, double y1, bool closed, bool abs = true) = 0;
213 virtual void svgLineTo(double x1, double y1, bool abs = true) = 0;
216 …gCurveToCubic(double x1, double y1, double x2, double y2, double x, double y, bool abs = true) = 0;
685 virtual void svgMoveTo(double x1, double y1, bool closed, bool abs = true) in svgMoveTo() argument
687 current.setX(narrowPrecisionToFloat(abs ? x1 : current.x() + x1)); in svgMoveTo()
688 current.setY(narrowPrecisionToFloat(abs ? y1 : current.y() + y1)); in svgMoveTo()
693 virtual void svgLineTo(double x1, double y1, bool abs = true) in svgLineTo() argument
695 current.setX(narrowPrecisionToFloat(abs ? x1 : current.x() + x1)); in svgLineTo()
696 current.setY(narrowPrecisionToFloat(abs ? y1 : current.y() + y1)); in svgLineTo()
699 …id svgCurveToCubic(double x1, double y1, double x2, double y2, double x, double y, bool abs = true) in svgCurveToCubic() argument
[all …]
/external/opencore/oscl/oscl/osclproc/src/
Doscl_semaphore.cpp133 static void getAbsTime(struct timespec &abs, uint32 timeout_msec) in getAbsTime() argument
153 abs.tv_sec = targ_sec; in getAbsTime()
154 abs.tv_nsec = targ_usec * 1000; in getAbsTime()
182 struct timespec abs; in Wait() local
183 getAbsTime(abs, timeout_msec); in Wait()
188 res = pthread_cond_timedwait(&ObjCondition, &ObjMutex, &abs); in Wait()
/external/dropbear/libtomcrypt/testprof/
Dpkcs_1_test.c31 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()
/external/webkit/JavaScriptCore/tests/mozilla/ecma/String/
D15.5.4.7-3.js159 if ( Math.abs(n) == 0 || Math.abs(n) == Infinity ) {
165 return ( sign * Math.floor(Math.abs(n)) );
D15.5.4.7-1.js214 if ( Math.abs(n) == 0 || Math.abs(n) == Infinity ) {
220 return ( sign * Math.floor(Math.abs(n)) );
D15.5.4.7-2.js213 if ( Math.abs(n) == 0 || Math.abs(n) == Infinity ) {
219 return ( sign * Math.floor(Math.abs(n)) );
/external/webkit/JavaScriptCore/tests/mozilla/ecma/Array/
D15.4.2.2-1.js112 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) {
115 n = sign * Math.floor( Math.abs(n) )
D15.4.1.2.js86 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) {
89 n = sign * Math.floor( Math.abs(n) )
/external/dropbear/libtommath/
Dbn_mp_rand.c32 d = ((mp_digit) abs (rand ())) & MP_MASK; in mp_rand()
44 if ((res = mp_add_d (a, ((mp_digit) abs (rand ())), a)) != MP_OKAY) { in mp_rand()
/external/webkit/JavaScriptCore/tests/mozilla/ecma/TypeConversion/
D9.6.js77 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) {
80 n = sign * Math.floor( Math.abs(n) )
/external/webkit/WebKit/qt/Plugins/
DICOHandler.cpp112 if ( std::abs( int( lhs.width - size ) ) < in operator ()()
113 std::abs( int( rhs.width - size ) ) ) return true; in operator ()()
114 else if ( std::abs( int( lhs.width - size ) ) > in operator ()()
115 std::abs( int( rhs.width - size ) ) ) return false; in operator ()()
128 else return std::abs( int( lhs.colors - colors ) ) < in operator ()()
129 std::abs( int( rhs.colors - colors ) ); in operator ()()
/external/webkit/WebCore/dom/
DChildNodeList.cpp60 unsigned dist = abs(diff); in item()
72 unsigned dist = abs(diff); in item()
/external/webkit/JavaScriptCore/tests/mozilla/ecma_2/String/
Dsplit-002.js250 if ( Math.abs( n ) == 0
251 || Math.abs( n ) == Number.POSITIVE_INFINITY
255 n = sign * Math.floor( Math.abs(n) )
/external/webkit/SunSpider/tests/
D3d-raytrace.js129 if (Math.abs(normal[0]) > Math.abs(normal[1]))
130 if (Math.abs(normal[0]) > Math.abs(normal[2]))
135 if (Math.abs(normal[1]) > Math.abs(normal[2]))

123456