/external/v8/test/mjsunit/ |
H A 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(Infinit [all...] |
H A 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( [all...] |
H A 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( [all...] |
H A 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( [all...] |
H A 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));
|
H A D | math-sqrt.js | 34 // Math.pow(-0, 0.5) must be zero, but Math.sqrt(-0) is -0. 37 assertEquals(expected_sqrt, Math.pow(value, 0.5));
|
H A D | sin-cos.js | 45 var x = Math.pow(2, 70);
|
/external/v8/test/mjsunit/regress/ |
H A 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));
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Math/ |
H A D | 15.8.2.13.js | 24 ECMA Section: 15.8.2.13 Math.pow(x, y) 35 var TITLE = "Math.pow(x, y)"; 46 array[item++] = new TestCase( SECTION, "Math.pow.length", 2, Math.pow.length ); 48 array[item++] = new TestCase( SECTION, "Math.pow()", Number.NaN, Math.pow() ); 49 array[item++] = new TestCase( SECTION, "Math.pow(null, null)", 1, Math.pow(null,null) ); 50 array[item++] = new TestCase( SECTION, "Math.pow(void 0, void 0)", Number.NaN, Math.pow(voi [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Array/ |
H A 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( [all...] |
H A D | 15.4-2.js | 55 array[item++] = new TestCase( SECTION, "var arr=new Array(); arr[Math.pow(2,16)] = 'hi'; arr.length", Math.pow(2,16)+1, eval("var arr=new Array(); arr[Math.pow(2,16)] = 'hi'; arr.length") ); 57 array[item++] = new TestCase( SECTION, "var arr=new Array(); arr[Math.pow(2,30)-2] = 'hi'; arr.length", Math.pow(2,30)-1, eval("var arr=new Array(); arr[Math.pow(2,30)-2] = 'hi'; arr.length") ); 58 array[item++] = new TestCase( SECTION, "var arr=new Array(); arr[Math.pow(2,30)-1] = 'hi'; arr.length", Math.pow(2,30), eval("var arr=new Array(); arr[Math.pow(2,30)-1] = 'hi'; arr.length") ); 59 array[item++] = new TestCase( SECTION, "var arr=new Array(); arr[Math.pow( [all...] |
H A D | 15.4.1.2.js | 60 array[item++] = new TestCase( SECTION, "(Array(Math.pow(2,31)-1)).length", ToUint32(Math.pow(2,31)-1), (Array(Math.pow(2,31)-1)).length ); 61 array[item++] = new TestCase( SECTION, "(Array(Math.pow(2,31))).length", ToUint32(Math.pow(2,31)), (Array(Math.pow(2,31))).length ); 62 array[item++] = new TestCase( SECTION, "(Array(Math.pow(2,31)+1)).length", ToUint32(Math.pow(2,31)+1), (Array(Math.pow(2,31)+1)).length ); 91 n = n % Math.pow( [all...] |
H A D | 15.4-1.js | 28 Math.pow(2,32). 49 "var myarr = new Array(); myarr[Math.pow(2,32)-2]='hi'; myarr[Math.pow(2,32)-2]", 51 eval("var myarr = new Array(); myarr[Math.pow(2,32)-2]='hi'; myarr[Math.pow(2,32)-2]") 54 "var myarr = new Array(); myarr[Math.pow(2,32)-2]='hi'; myarr.length", 55 (Math.pow(2,32)-1), 56 eval("var myarr = new Array(); myarr[Math.pow(2,32)-2]='hi'; myarr.length") 59 "var myarr = new Array(); myarr[Math.pow(2,32)-3]='hi'; myarr[Math.pow( [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/RegExp/ |
H A 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( [all...] |
/external/webkit/Source/WebCore/platform/audio/ |
H A D | AudioUtilities.cpp | 38 return pow(10.0, 0.05 * decibels); 56 return 1.0 - pow(1.0 / 2.718282, 1.0 / (sampleRate * timeConstant));
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Expressions/ |
H A 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( [all...] |
H A 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( [all...] |
H A 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( [all...] |
H A 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( [all...] |
H A 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( [all...] |
H A 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( [all...] |
H A 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( [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_3/RegExp/ |
H A 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( [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/GlobalObject/ |
H A 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(1 [all...] |
/external/stlport/test/unit/ |
H A D | valarray_test.cpp | 56 tmp = pow(darray, tmp); 57 tmp = pow(1.0, darray); 58 tmp = pow(darray, 1.0); 82 tmp = pow(farray, tmp); 83 tmp = pow(1.0f, farray); 84 tmp = pow(farray, 1.0f); 109 tmp = pow(ldarray, tmp); 110 tmp = pow(1.0l, ldarray); 111 tmp = pow(ldarray, 1.0l);
|