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