TianoCore EDK2 master
Loading...
Searching...
No Matches
RRotU64.c
Go to the documentation of this file.
1
23UINT64
24EFIAPI
26 IN UINT64 Operand,
27 IN UINTN Count
28 )
29{
30 _asm {
31 mov cl, byte ptr [Count]
32 mov eax, dword ptr [Operand + 0]
33 mov edx, dword ptr [Operand + 4]
34 shrd ebx, eax, cl
35 shrd eax, edx, cl
36 rol ebx, cl
37 shrd edx, ebx, cl
38 test cl, 32 // Count >= 32?
39 jz L0
40 mov ecx, eax
41 mov eax, edx
42 mov edx, ecx
43L0:
44 }
45}
UINT64 UINTN
UINT64 EFIAPI InternalMathRRotU64(IN UINT64 Operand, IN UINTN Count)
Definition: RRotU64.c:25
#define IN
Definition: Base.h:279