Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
ion
/
math-imul-folding.js
blob: 4a187ad074581b177ca7821586a24e6d824c9e0a [
file
] [
log
] [
blame
]
function
sprod
(
x
,
y
)
{
var
iprod
=
Math
.
imul
(
x
|
0
,
y
|
0
);
var
fprod
=
(
x
|
0
)
*
(
y
|
0
);
return
iprod
+
fprod
;
}
assertEq
(
sprod
(
2
,
2
),
8
);
assertEq
(
sprod
(
0x10000
,
0x10000
),
0x100000000
);