rotl32 function

int rotl32(
  1. int x,
  2. int k
)

Rotates the 32-bit value x left by k (1 ≤ k ≤ 31).

Implementation

int rotl32(int x, int k) => ((x << k) & _m32) | ((x & _m32) >>> (32 - k));