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