Sign in
webkit
/
WebKit
/
0c2ddc1eca6e59125730b10296378ad87a14f61c
/
.
/
JSTests
/
microbenchmarks
/
constant-test.js
blob: 089681a157edbae2b4bd8e70762624069b24d1a8 [
file
] [
log
] [
blame
]
function
foo
(
a
,
b
,
c
)
{
return
a
*
b
/
c
+
a
-
b
*
c
/
a
%
b
+
c
;
}
var
result
=
0
;
for
(
var
i
=
0
;
i
<
1000000
;
++
i
)
result
+=
foo
(
1.5
,
2.4
,
3.3
);
if
(
result
!=
5410909.091033336
)
throw
"Bad result: "
+
result
;