UNPKG

@technobuddha/library

Version:
11 lines (10 loc) 408 B
/** * Rotates the bits of a 32-bit number to the left by a specified number of bits. * * @param num - The 32-bit integer to rotate. * @param bits - The number of bits to rotate to the left. * @returns The result of rotating `num` to the left by `bits` positions as an unsigned 32-bit integer. * @group Binary * @category Arithmetic */ export declare function rotl(num: number, bits: number): number;