clz64
clz64(
value):number
Defined in: packages/core/src/big-int/bit/clz64.ts:14
Counts the leading zero bits in the low 64 bits of value.
The generalisation of Math.clz32, which stops at 32 bits, and the high-end
counterpart of ctz64.
Parameters
Section titled “Parameters”bigint
The value to inspect; only its low 64 bits are considered.
Returns
Section titled “Returns”number
The number of leading zero bits, from 0 to 64. clz64(0n) is 64,
matching Math.clz32(0) being 32.