RosettaCodeData/Task/Bitwise-operations/C/bitwise-operations-3.c
2023-07-01 13:44:08 -04:00

5 lines
171 B
C

rotr:
movl 4(%esp), %eax ; arg1: x
movl 8(%esp), %ecx ; arg2: s
rorl %cl, %eax ; right rotate x by s
ret