RosettaCodeData/Task/Bitwise-operations/C/bitwise-operations-3.c

6 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