TianoCore EDK2
master
Loading...
Searching...
No Matches
RRotU64.c
Go to the documentation of this file.
1
23
UINT64
24
EFIAPI
25
InternalMathRRotU64
(
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
43
L0:
44
}
45
}
UINTN
UINT64 UINTN
Definition:
ProcessorBind.h:112
InternalMathRRotU64
UINT64 EFIAPI InternalMathRRotU64(IN UINT64 Operand, IN UINTN Count)
Definition:
RRotU64.c:25
IN
#define IN
Definition:
Base.h:279
MdePkg
Library
BaseLib
Ia32
RRotU64.c
Generated on Fri Nov 15 2024 18:01:17 for TianoCore EDK2 by
1.9.6