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

6 lines
171 B
C
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
rotr:
movl 4(%esp), %eax ; arg1: x
movl 8(%esp), %ecx ; arg2: s
rorl %cl, %eax ; right rotate x by s
ret