Sign in
webkit
/
WebKit
/
6372d18ed2fb0e5306b33bd85febb537c2fcf56a
/
.
/
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
;