]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPkg/Library/CompilerIntrinsicsLib/Arm/llsr.S
ArmPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / ArmPkg / Library / CompilerIntrinsicsLib / Arm / llsr.S
CommitLineData
76aee8f4 1#------------------------------------------------------------------------------\r
2#\r
3# Copyright (c) 2013, ARM. All rights reserved.<BR>\r
4#\r
4059386c 5# SPDX-License-Identifier: BSD-2-Clause-Patent\r
76aee8f4 6#\r
7#------------------------------------------------------------------------------\r
8\r
903e3124 9#include <AsmMacroIoLib.h>\r
76aee8f4 10\r
76aee8f4 11#VOID\r
12#EFIAPI\r
13#__aeabi_llsr (\r
14# IN VOID *Destination,\r
15# IN VOID *Source,\r
16# IN UINT32 Size\r
17# );\r
18#\r
903e3124 19ASM_FUNC(__aeabi_llsr)\r
76aee8f4 20 subs r3,r2,#0x20\r
21 bpl 1f\r
22 rsb r3,r2,#0x20\r
23 lsr r0,r0,r2\r
24 orr r0,r0,r1,lsl r3\r
25 lsr r1,r1,r2\r
26 bx lr\r
271:\r
28 lsr r0,r1,r3\r
29 mov r1,#0\r
30 bx lr\r