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