Skip to content

ctz64

ctz64(value): number

Defined in: packages/core/src/big-int/bit/ctz64.ts:13

Counts the trailing zero bits in the low 64 bits of value.

The 64-bit counterpart of ctz32 — see its doc for the value & -value isolation trick this composes with popCount64.

bigint

The value to inspect; only its low 64 bits are considered.

number

The number of trailing zero bits, from 0 to 64.