Closed DonaldTsang closed 6 years ago
def circular(num, bits, shift): return ( num >> shift ) + ( ( num & ( 2 ** shift - 1 ) ) << ( bits - shift ) ) def circular_left(num, bits, shift): return circular(num, bits, bits - shift)
This seems really unlikely to be relevant.