Is there a way to perform a circular bit shift in C#?
If you know the size of type, you could do something like: uint i = 17; uint j = i << 1 | i >> 31; … which would perform a circular shift of a 32 bit value. As a generalization to circular shift left n bits, on a b bit variable: /*some unsigned numeric … Read more