RosettaCodeData/Task/Bitwise-operations/Beeswax/bitwise-operations-4.beeswax

3 lines
68 B
Text
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
A ROL B = A<<(B%64)+A>>>(64-B%64)
A ROR B = A>>>(B%64)+A<<(64-B%64)