(id: number)
| 148 | } |
| 149 | |
| 150 | function getLeadingBit(id: number) { |
| 151 | return 1 << (getBitLength(id) - 1); |
| 152 | } |
| 153 | |
| 154 | // TODO: Math.clz32 is supported in Node 12+. Maybe we can drop the fallback. |
| 155 | const clz32 = Math.clz32 ? Math.clz32 : clz32Fallback; |
no test coverage detected