arithmetic-type/uint32

View on GitHub
src/rotl32.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Left rotate for 32-bit unsigned integers
 *
 *  - used in md5 and sha1
 */

export function rotl32(word, shift) {
    return (word << shift) | (word >>> (32 - shift));
}