michael@0: function sprod(x, y) { michael@0: var iprod = Math.imul(x | 0, y | 0); michael@0: var fprod = (x | 0) * (y | 0); michael@0: return iprod + fprod; michael@0: } michael@0: assertEq(sprod(2, 2), 8); michael@0: assertEq(sprod(0x10000, 0x10000), 0x100000000);