the bit operators would profit if you add rotate operators to it. Rotate looks at the bit pattern as a ring and if a bit leaves at one end it re enters on the other.
So if you rotate 0x5 (b00000101) one bit right it would become 0x82 (b10000010) when you assume the value to be 8 bits wide. Rotating it to the left would produce 0xa (b00001010). Rotation operators e.g. are used for crypto operation.
Users browsing this forum: No registered users and 1 guest