Skip to content

rotl32

rotl32(value, count): number

Defined in: packages/core/src/number/bit/rotl32.ts:12

Rotates value left within 32 bits.

JavaScript has no unsigned 32-bit integer type, so bit rotation has to be emulated with the shift operators, which discard the bits a real rotation would wrap around.

number

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

number

The rotation distance, taken modulo 32.

number

The rotated value as an unsigned 32-bit integer.