rol.js 221 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 /** * Bitwise circular shift left * http://en.wikipedia.org/wiki/Circular_shift */ function rol(val, shift){ return (val << shift) | (val >> (32 - shift)); } module.exports = rol;