(x: number)
| 8 | * @internal |
| 9 | */ |
| 10 | export function popcount(x: number) { |
| 11 | x -= (x >> 1) & 0x55555555 |
| 12 | x = (x & 0x33333333) + ((x >> 2) & 0x33333333) |
| 13 | x = (x + (x >> 4)) & 0x0f0f0f0f |
| 14 | x += x >> 8 |
| 15 | x += x >> 16 |
| 16 | return x & 0x7f |
| 17 | } |
| 18 | |
| 19 | /** @internal */ |
| 20 | export function hashFragment(shift: number, h: number) { |
no outgoing calls
no test coverage detected
searching dependent graphs…