repo.or.cz
/
qtwebkit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Update ReadMe.md
[qtwebkit.git]
/
JSTests
/
microbenchmarks
/
bit-or-tree.js
blob
3fc0c350fa580f2367e10b4a717f71da1d248822
1
for (var i = 0; i < 20000000; ++i) {
2
var result = i;
3
result |= i | 1;
4
result |= i | 2;
5
result |= i | 3;
6
result |= i | 4;
7
result |= i | 5;
8
result |= i | 6;
9
result |= i | 7;
10
if (result !== (i | 7))
11
throw "Error: bad result at iteration " + i + " : " + result;
12
13
}