C doesn't have a rotate operator either.
The rotate operator takes the bits that are shifted out of the register and shifts then in from the other end.
Rotate 010...101 by 1 to to the right = 1010...10
Shift 010...101 by 1 to to the right = 0010...10
In reply to Re^5: Extracting Bit Fields (Again)
by ikegami
in thread Extracting Bit Fields (Again)
by ozboomer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |