On 2026-03-07 21:28, Jeffrey Walton wrote:
If the shift or rotate is a constant value, then you risk having the code removed_if_ the shift is too large. That is, you are assuming GCC's behavior.
I'm not following. As far as I can see, the patch works fine no matter how large the count argument is, because ANDing the count with the mask guarantees that the right operand of << (or >>) is in the range that the C standard guarantees support for.
