Bitwise rotate of integral

Guillaume Piolat first.last at gmail.com
Mon Jan 7 23:13:37 UTC 2019


On Monday, 7 January 2019 at 14:39:07 UTC, Per Nordlöw wrote:
> What's the preferred way of doing bitwise rotate of an integral 
> value in D?
>
> Are there intrinsics for bitwise rotation available in LDC?

Turns out you don't need any:

https://d.godbolt.org/z/C_Sk_-

Generates ROL instruction.


More information about the Digitalmars-d-learn mailing list