The Tor Browser
/ file comparison
Search:
summary
shortlog
changelog
graph
tags
bookmarks
branches
files
help
file
revisions
annotate
diff
comparison
raw
comparison: js/src/jit-test/tests/ion/math-imul-folding.js
js/src/jit-test/tests/ion/math-imul-folding.js
changeset 0
6474c204b198
equal
deleted
inserted
replaced
-1:000000000000
0:69dbee6bacaf
1
function sprod(x, y) {
2
var iprod = Math.imul(x | 0, y | 0);
3
var fprod = (x | 0) * (y | 0);
4
return iprod + fprod;
5
}
6
assertEq(sprod(2, 2), 8);
7
assertEq(sprod(0x10000, 0x10000), 0x100000000);