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