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

6 lines
171 B
C
Raw Permalink Normal View History

2013-04-10 16:19:29 -07:00
rotr:
movl 4(%esp), %eax ; arg1: x
movl 8(%esp), %ecx ; arg2: s
rorl %cl, %eax ; right rotate x by s
ret