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