import type { Bit } from "./api.js" ; param x param n export const rotateLeft = ( x , n ) => ( ( x << n ) | ( x >>> ( 32 - n ) ) ) >>> 0 ; param x param n export const rotateRight = ( x , n ) => ( ( x >>> n ) | ( x << ( 32 - n ) ) ) >>> 0 ; param x param n export const shiftRL = ( x , n ) => ( n < 0 ? x << - n : x >>> n ) ;