/external/v8/test/mjsunit/ |
D | math-pow.js | 31 assertEquals(4, Math.pow(2, 2)); 32 assertEquals(2147483648, Math.pow(2, 31)); 33 assertEquals(0.25, Math.pow(2, -2)); 34 assertEquals(0.0625, Math.pow(2, -4)); 35 assertEquals(1, Math.pow(1, 100)); 36 assertEquals(0, Math.pow(0, 1000)); 39 assertEquals(NaN, Math.pow(2, NaN)); 40 assertEquals(NaN, Math.pow(+0, NaN)); 41 assertEquals(NaN, Math.pow(-0, NaN)); 42 assertEquals(NaN, Math.pow(Infinity, NaN)); [all …]
|
D | delete.js | 85 assertTrue(delete a[Math.pow(2,31)-1], "delete 2^31-1"); 102 o[Math.pow(2,30)-1] = 0; 103 o[Math.pow(2,31)-1] = 0; 106 assertTrue(delete o[Math.pow(2,30)]); 108 assertFalse(has(o, Math.pow(2,30))); 110 assertTrue(has(o, Math.pow(2,30)-1)); 111 assertTrue(has(o, Math.pow(2,31)-1)); 113 assertTrue(delete o[Math.pow(2,30)-1]); 115 assertFalse(has(o, Math.pow(2,30)-1), "delete 2^30-1"); 116 assertTrue(has(o, Math.pow(2,31)-1)); [all …]
|
D | array-length.js | 77 a[Math.pow(2,31)-1] = 0; 78 a[Math.pow(2,30)-1] = 0; 79 assertEquals(Math.pow(2,31), a.length); 85 a[Math.pow(2,30)-1] = Math.pow(2,30)-1; 86 a[Math.pow(2,31)-1] = Math.pow(2,31)-1; 87 a[Math.pow(2,32)-2] = Math.pow(2,32)-2; 89 assertEquals(Math.pow(2,30)-1, a[Math.pow(2,30)-1]); 90 assertEquals(Math.pow(2,31)-1, a[Math.pow(2,31)-1]); 91 assertEquals(Math.pow(2,32)-2, a[Math.pow(2,32)-2]); 93 assertEquals(Math.pow(2,32)-1, a.length); [all …]
|
D | in.js | 109 o[Math.pow(2,30)-1] = 0; 110 o[Math.pow(2,31)-1] = 0; 115 assertFalse(Math.pow(2,30)-2 in o); 116 assertTrue(Math.pow(2,30)-1 in o); 117 assertFalse(Math.pow(2,30)-0 in o); 118 assertTrue(Math.pow(2,31)-1 in o); 134 a[Math.pow(2,30)-1] = 0; 135 a[Math.pow(2,31)-1] = 0; 140 assertFalse(Math.pow(2,30)-2 in a, "Math.pow(2,30)-2 in a"); 141 assertTrue(Math.pow(2,30)-1 in a, "Math.pow(2,30)-1 in a"); [all …]
|
D | toint32.js | 86 var base = Math.pow(2, 64); 118 var bignum = Math.pow(2, 84) - Math.pow(2, 31); 119 assertEquals(-Math.pow(2,31), toInt32(bignum)); 120 assertEquals(-Math.pow(2,31), toInt32(-bignum)); 123 assertEquals(0, toInt32(bignum - Math.pow(2,31))); 124 assertEquals(0, toInt32(-(bignum - Math.pow(2,31)))); 127 var max_fraction = (1 - Math.pow(2,-53));
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Math/ |
D | 15.8.2.13.js | 46 …tCase( SECTION, "Math.pow.length", 2, Math.pow.length ); 48 …w TestCase( SECTION, "Math.pow()", Number.NaN, Math.pow() ); 49 …e( SECTION, "Math.pow(null, null)", 1, Math.pow(null,null) ); 50 …ECTION, "Math.pow(void 0, void 0)", Number.NaN, Math.pow(void 0, void 0)); 51 … SECTION, "Math.pow(true, false)", 1, Math.pow(true, false) ); 52 …( SECTION, "Math.pow(false,true)", 0, Math.pow(false,true) ); 53 …se( SECTION, "Math.pow('2','32')", 4294967296, Math.pow('2','32') ); 55 …SECTION, "Math.pow(1,NaN)", Number.NaN, Math.pow(1,Number.NaN) ); 56 … SECTION, "Math.pow(0,NaN)", Number.NaN, Math.pow(0,Number.NaN) ); 57 …SECTION, "Math.pow(NaN,0)", 1, Math.pow(Number.NaN,0) ); [all …]
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Array/ |
D | 15.4.5.2-2.js | 47 addCase( new Array(), 0, Math.pow(2,14), Math.pow(2,14) ); 51 addCase( new Array(Math.pow(2,12)), Math.pow(2,12), 0, 0 ); 52 addCase( new Array(Math.pow(2,13)), Math.pow(2,13), Math.pow(2,12), Math.pow(2,12) ); 53 addCase( new Array(Math.pow(2,12)), Math.pow(2,12), Math.pow(2,12), Math.pow(2,12) ); 54 addCase( new Array(Math.pow(2,14)), Math.pow(2,14), Math.pow(2,12), Math.pow(2,12) ) 58 for ( var arg = "", i = 0; i < Math.pow(2,12); i++ ) { 59 arg += String(i) + ( i != Math.pow(2,12)-1 ? "," : "" ); 67 addCase( a, i, Math.pow(2,12)+i+1, Math.pow(2,12)+i+1, true ); 68 addCase( a, Math.pow(2,12)+5, 0, 0, true );
|
D | 15.4-2.js | 55 … "var arr=new Array(); arr[Math.pow(2,16)] = 'hi'; arr.length", Math.pow(2,16)+1, eval("va… 57 … "var arr=new Array(); arr[Math.pow(2,30)-2] = 'hi'; arr.length", Math.pow(2,30)-1, eval("va… 58 … "var arr=new Array(); arr[Math.pow(2,30)-1] = 'hi'; arr.length", Math.pow(2,30), eval("va… 59 … "var arr=new Array(); arr[Math.pow(2,30)] = 'hi'; arr.length", Math.pow(2,30)+1, eval("va… 61 … "var arr=new Array(); arr[Math.pow(2,31)-2] = 'hi'; arr.length", Math.pow(2,31)-1, eval("va… 62 … "var arr=new Array(); arr[Math.pow(2,31)-1] = 'hi'; arr.length", Math.pow(2,31), eval("va… 63 … "var arr=new Array(); arr[Math.pow(2,31)] = 'hi'; arr.length", Math.pow(2,31)+1, eval("va…
|
D | 15.4.1.2.js | 60 …TION, "(Array(Math.pow(2,31)-1)).length", ToUint32(Math.pow(2,31)-1), (Array(Math.pow(2,31… 61 …TION, "(Array(Math.pow(2,31))).length", ToUint32(Math.pow(2,31)), (Array(Math.pow(2,31… 62 …TION, "(Array(Math.pow(2,31)+1)).length", ToUint32(Math.pow(2,31)+1), (Array(Math.pow(2,31… 91 n = n % Math.pow(2,32); 94 n += Math.pow(2,32);
|
D | 15.4-1.js | 55 (Math.pow(2,32)-1), 65 (Math.pow(2,32)-2), 76 (Math.pow(2,31)-1), 87 (Math.pow(2,31)), 99 (Math.pow(2,31)+1), 110 (Math.pow(2,30)-1),
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/RegExp/ |
D | properties-002.js | 20 re_1.lastIndex = Math.pow(2,31); 21 AddRegExpCases( re_1, "\\cA?", true, false, false, Math.pow(2,31) ); 24 re_2.lastIndex = Math.pow(2,32) -1; 25 AddRegExpCases( re_2, "\\w*", false, true, false, Math.pow(2,32)-1 ); 28 re_3.lastIndex = Math.pow(2,31) -1; 29 AddRegExpCases( re_3, "\\*{0,80}", false, false, true, Math.pow(2,31) -1 ); 32 re_4.lastIndex = Math.pow(2,30) -1; 33 AddRegExpCases( re_4, "^.", true, true, true, Math.pow(2,30) -1 ); 36 re_5.lastIndex = Math.pow(2,30); 37 AddRegExpCases( re_5, "\\B", false, false, false, Math.pow(2,30) ); [all …]
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Expressions/ |
D | 11.4.8.js | 65 var p = Math.pow(2,i); 71 var p = -Math.pow(2,i); 99 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32); 100 n = ( n >= Math.pow(2,31) ) ? n - Math.pow(2,32) : n; 113 n = n % Math.pow(2,32); 116 n += Math.pow(2,32); 128 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16); 131 n += Math.pow(2,16); 145 if ( n >= Math.pow(2,p) ) { 147 n -= Math.pow(2,p); [all …]
|
D | 11.7.1.js | 74 shiftexp = Math.pow( 2, power ); 106 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32); 107 n = ( n >= Math.pow(2,31) ) ? n - Math.pow(2,32) : n; 120 n = n % Math.pow(2,32); 123 n += Math.pow(2,32); 135 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16); 138 n += Math.pow(2,16); 152 if ( n >= Math.pow(2,p) ) { 154 n -= Math.pow(2,p); 168 if ( (sign == 1 ) ? sign * n >= Math.pow(2,p) : sign * n > Math.pow(2,p) ) { [all …]
|
D | 11.7.3.js | 78 shiftexp = Math.pow( 2, power ); 111 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32); 112 n = ( n >= Math.pow(2,31) ) ? n - Math.pow(2,32) : n; 125 n = n % Math.pow(2,32); 128 n += Math.pow(2,32); 140 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16); 143 n += Math.pow(2,16); 157 if ( n >= Math.pow(2,p) ) { 159 n -= Math.pow(2,p); 173 if ( (sign == 1 ) ? sign * n >= Math.pow(2,p) : sign * n > Math.pow(2,p) ) { [all …]
|
D | 11.7.2.js | 76 shiftexp = Math.pow( 2, power ); 87 shiftexp = -Math.pow( 2, power ); 120 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32); 121 n = ( n >= Math.pow(2,31) ) ? n - Math.pow(2,32) : n; 134 n = n % Math.pow(2,32); 137 n += Math.pow(2,32); 149 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16); 152 n += Math.pow(2,16); 166 if ( n >= Math.pow(2,p) ) { 168 n -= Math.pow(2,p); [all …]
|
D | 11.10-1.js | 74 shiftexp += Math.pow( 2, shiftpow ); 77 addexp += Math.pow(2, addpow); 108 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32); 109 n = ( n >= Math.pow(2,31) ) ? n - Math.pow(2,32) : n; 122 n = n % Math.pow(2,32); 125 n += Math.pow(2,32); 137 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16); 140 n += Math.pow(2,16); 154 if ( n >= Math.pow(2,p) ) { 156 n -= Math.pow(2,p); [all …]
|
D | 11.10-2.js | 73 shiftexp += Math.pow( 2, shiftpow ); 76 addexp += Math.pow(2, addpow); 107 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32); 108 n = ( n >= Math.pow(2,31) ) ? n - Math.pow(2,32) : n; 121 n = n % Math.pow(2,32); 124 n += Math.pow(2,32); 136 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16); 139 n += Math.pow(2,16); 153 if ( n >= Math.pow(2,p) ) { 155 n -= Math.pow(2,p); [all …]
|
D | 11.10-3.js | 73 shiftexp += Math.pow( 2, shiftpow ); 76 addexp += Math.pow(2, addpow); 107 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32); 108 n = ( n >= Math.pow(2,31) ) ? n - Math.pow(2,32) : n; 121 n = n % Math.pow(2,32); 124 n += Math.pow(2,32); 136 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16); 139 n += Math.pow(2,16); 153 if ( n >= Math.pow(2,p) ) { 155 n -= Math.pow(2,p); [all …]
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_3/RegExp/ |
D | 15.10.6.2-2.js | 160 pattern.lastIndex = Math.pow(2,32); 166 pattern.lastIndex = -Math.pow(2,32); 172 pattern.lastIndex = Math.pow(2,32) + 1; 178 pattern.lastIndex = -(Math.pow(2,32) + 1); 184 pattern.lastIndex = Math.pow(2,32) * 2; 190 pattern.lastIndex = -Math.pow(2,32) * 2; 196 pattern.lastIndex = Math.pow(2,40); 202 pattern.lastIndex = -Math.pow(2,40); 276 pattern.lastIndex = Math.pow(2,32); 282 pattern.lastIndex = -Math.pow(2,32); [all …]
|
/external/mesa3d/src/glsl/builtins/ir/ |
D | pow | 1 ((function pow 6 ((return (expression float pow (var_ref arg0) (var_ref arg1))))) 14 …(assign (constant bool (1)) (x) (var_ref ret) (call pow ((swiz x (var_ref b)) (swiz x (var_ref e))… 15 …(assign (constant bool (1)) (y) (var_ref ret) (call pow ((swiz y (var_ref b)) (swiz y (var_ref e))… 26 …(assign (constant bool (1)) (x) (var_ref ret) (call pow ((swiz x (var_ref b)) (swiz x (var_ref e))… 27 …(assign (constant bool (1)) (y) (var_ref ret) (call pow ((swiz y (var_ref b)) (swiz y (var_ref e))… 28 …(assign (constant bool (1)) (z) (var_ref ret) (call pow ((swiz z (var_ref b)) (swiz z (var_ref e))… 39 …(assign (constant bool (1)) (x) (var_ref ret) (call pow ((swiz x (var_ref b)) (swiz x (var_ref e))… 40 …(assign (constant bool (1)) (y) (var_ref ret) (call pow ((swiz y (var_ref b)) (swiz y (var_ref e))… 41 …(assign (constant bool (1)) (z) (var_ref ret) (call pow ((swiz z (var_ref b)) (swiz z (var_ref e))… [all …]
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/GlobalObject/ |
D | 15.1.2.2-1.js | 142 HEX_VALUE += Math.pow(16,POWER)*15; 146 HEX_VALUE += Math.pow(16,POWER)*15; 150 HEX_VALUE += Math.pow(16,POWER)*15; 154 HEX_VALUE += Math.pow(16,POWER)*15; 158 HEX_VALUE += Math.pow(16,POWER)*15; 162 HEX_VALUE += Math.pow(16,POWER)*15; 172 HEX_VALUE += Math.pow(16,POWER)*15; 178 HEX_VALUE -= Math.pow(16,POWER)*15; 185 HEX_VALUE += Math.pow(16,POWER)*15; 189 HEX_VALUE += Math.pow(16,POWER)*15; [all …]
|
/external/llvm/test/Transforms/SimplifyLibCalls/ |
D | pow2.ll | 1 ; Testcase for calls to the standard C "pow" function 3 ; RUN: opt < %s -simplify-libcalls -S | not grep {call .pow} 6 declare double @pow(double, double) 10 %Y = call double @pow( double %X, double 0.000000e+00 ) ; <double> [#uses=1] 15 %Y = call double @pow( double %X, double -0.000000e+00 ) ; <double> [#uses=1] 20 %Y = call double @pow( double 1.000000e+00, double %X ) ; <double> [#uses=1] 25 %Y = call double @pow( double %X, double 2.0)
|
/external/stlport/test/unit/ |
D | valarray_test.cpp | 56 tmp = pow(darray, tmp); in transcendentals() 57 tmp = pow(1.0, darray); in transcendentals() 58 tmp = pow(darray, 1.0); in transcendentals() 82 tmp = pow(farray, tmp); in transcendentals() 83 tmp = pow(1.0f, farray); in transcendentals() 84 tmp = pow(farray, 1.0f); in transcendentals() 109 tmp = pow(ldarray, tmp); in transcendentals() 110 tmp = pow(1.0l, ldarray); in transcendentals() 111 tmp = pow(ldarray, 1.0l); in transcendentals()
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/TypeConversion/ |
D | 9.5-2.js | 81 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32); 83 n = ( n < -Math.pow(2,31) ) ? n + Math.pow(2,32) : n; 85 n = ( n >= Math.pow(2,31) ) ? n - Math.pow(2,32) : n; 115 … TestCase( SECTION, "(Math.pow(2,31)-1) << 0", ToInt32(2147483647), (Math.pow(2,31)-1) << 0 ); 116 … new TestCase( SECTION, "Math.pow(2,31) << 0", ToInt32(2147483648), Math.pow(2,31) << 0 ); 117 … TestCase( SECTION, "(Math.pow(2,31)+1) << 0", ToInt32(2147483649), (Math.pow(2,31)+1) << 0 ); 119 …estCase( SECTION, "(Math.pow(2,32)-1) << 0", ToInt32(4294967295), (Math.pow(2,32)-1) << 0 ); 120 … TestCase( SECTION, "(Math.pow(2,32)) << 0", ToInt32(4294967296), (Math.pow(2,32)) << 0 ); 121 …estCase( SECTION, "(Math.pow(2,32)+1) << 0", ToInt32(4294967297), (Math.pow(2,32)+1) << 0 );
|
/external/v8/test/mjsunit/regress/ |
D | regress-397.js | 30 assertEquals("Infinity", String(Math.pow(Infinity, 0.5))); 31 assertEquals(0, Math.pow(Infinity, -0.5)); 33 assertEquals("Infinity", String(Math.pow(-Infinity, 0.5))); 34 assertEquals(0, Math.pow(-Infinity, -0.5));
|