Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 function test1(x) {
2 return (x*((2<<23)-1))|0
3 }
4 function test2(x) {
5 return (x*((2<<22)-1))|0
6 }
7 function test3(x) {
8 return (x*((2<<21)-1))|0
9 }
10 function test4(x) {
11 var b = x + x + 3
12 return (b*b) | 0
13 }
14 //MAX_INT
15 var x = 0x7ffffffe;
16 assertEq(test1(x), 2113929216);
17 assertEq(test2(x), 2130706434);
18 assertEq(test3(x), 2139095042);
19 assertEq(test4(x), 0);