Sign in
webkit
/
WebKit
/
1301b5dddcb28e452a3a8911596f68f5704bd0a8
/
.
/
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
;