Search found 1 match

by marioxcc
2020-06-14, 20:00:26
Forum: Agner's CPU blog
Topic: Why do some instruction sets include bit shifts but not bit rotations?
Replies: 4
Views: 43319

Why do some instruction sets include bit shifts but not bit rotations?

RISC-V and AVX include instructions for variable bit shifts but not for rotations. What is the reason for this? Are variable rotations more expensive to implement in hardware than variable shifts?