Sign in
webkit
/
WebKit
/
247b0314320d499ae788b6ea993aa1d98e2d607e
/
.
/
JSTests
/
microbenchmarks
/
bit-xor-tree.js
blob: d4baf43a4c0c6d611919d754500ac1a3f16a2c5f [
file
] [
log
] [
blame
]
var
result
=
0
;
for
(
var
i
=
0
;
i
<
20000000
;
++
i
)
{
result
^=
i
;
result
^=
i
+
1
;
result
^=
i
+
2
;
result
^=
i
+
3
;
result
^=
i
+
4
;
result
^=
i
+
5
;
result
^=
i
+
6
;
result
^=
i
+
7
;
}
if
(
result
!==
0
)
throw
"Error: bad result: "
+
result
;