Skip to content

rotl64

rotl64(value, count): bigint

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

Rotates value left within 64 bits.

bigint shifts are unbounded, so the result has to be masked back down to 64 bits after every rotation.

bigint

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

bigint

The rotation distance, which must be in the 0n..64n range.

bigint

The rotated value as an unsigned 64-bit integer.