TianoCore EDK2 master
Loading...
Searching...
No Matches
RShiftU64.c
Go to the documentation of this file.
1
22UINT64
23EFIAPI
25 IN UINT64 Operand,
26 IN UINTN Count
27 )
28{
29 _asm {
30 mov cl, byte ptr [Count]
31 xor edx, edx
32 mov eax, dword ptr [Operand + 4]
33 test cl, 32
34 jnz L0
35 mov edx, eax
36 mov eax, dword ptr [Operand + 0]
37L0:
38 shrd eax, edx, cl
39 shr edx, cl
40 }
41}
UINT64 UINTN
UINT64 EFIAPI InternalMathRShiftU64(IN UINT64 Operand, IN UINTN Count)
Definition: RShiftU64.c:24
#define IN
Definition: Base.h:279