TianoCore EDK2 master
Loading...
Searching...
No Matches
LRotU64.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 edx, dword ptr [Operand + 4]
33 mov eax, dword ptr [Operand + 0]
34 shld ebx, edx, cl
35 shld edx, eax, cl
36 ror ebx, cl
37 shld eax, ebx, cl
38 test cl, 32 ; Count >= 32?
39 jz L0
40 mov ecx, eax
41 mov eax, edx
42 mov edx, ecx
43 L0 :
44 }
45}
UINT64 UINTN
UINT64 EFIAPI InternalMathLRotU64(IN UINT64 Operand, IN UINTN Count)
Definition: LRotU64.c:25
#define IN
Definition: Base.h:279