Sign in
webkit
/
WebKit
/
36b74c3900290f2598b1d40cf6065a7028fc4a34
/
.
/
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
;