What's the purpose of the rotate instructions (ROL, RCL on x86) ?
- by lgratian
I always wondered what's the purpose of the rotate instructions some CPUs have (ROL, RCL on x86, for example). What kind of software makes use of these instructions? I first thought they may be used for encryption/computing hash codes, but these libraries are written usually in C, which doesn't have operators that map to these instructions.
Has anybody found an use for them? Why where they added to the instructions set?