How can I move a column in an 8x8 area? For example, I have this single 64-bit unsigned integer , as shown below:
#include <boost/cstdint.hpp>
int main()
{
boost::uint64_t b = 0x8080808002020202;
}
Now I want to wrap the first vertical line, say four times, after which it becomes the following:
b == 0x82828282;
Is it possible to do this relatively quickly with just bitwise operators or what?
source
share