(l)
| 111 | } |
| 112 | |
| 113 | static _bitCount(l) { |
| 114 | // see https://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetParallel |
| 115 | let count = 0; |
| 116 | l = l - ((l >> 1) & 0x55555555); |
| 117 | l = (l & 0x33333333) + ((l >> 2) & 0x33333333); |
| 118 | l = (l + (l >> 4)) & 0x0f0f0f0f; |
| 119 | l = l + (l >> 8); |
| 120 | l = l + (l >> 16); |
| 121 | return count + l & 0x3f; |
| 122 | } |
| 123 | } |
no outgoing calls
no test coverage detected