]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPkg/Library/CompilerIntrinsicsLib/Arm/llsl.S
ArmPkg/CompilerIntrinsicsLib: switch to ASM_FUNC() asm macro
[mirror_edk2.git] / ArmPkg / Library / CompilerIntrinsicsLib / Arm / llsl.S
CommitLineData
76aee8f4 1#------------------------------------------------------------------------------\r
2#\r
3# Copyright (c) 2013, ARM. All rights reserved.<BR>\r
4#\r
5# This program and the accompanying materials\r
6# are licensed and made available under the terms and conditions of the BSD License\r
7# which accompanies this distribution. The full text of the license may be found at\r
8# http://opensource.org/licenses/bsd-license.php\r
9#\r
10# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12#\r
13#------------------------------------------------------------------------------\r
14\r
903e3124 15#include <AsmMacroIoLib.h>\r
76aee8f4 16\r
17#\r
18#VOID\r
19#EFIAPI\r
20#__aeabi_llsl (\r
21# IN VOID *Destination,\r
22# IN VOID *Source,\r
23# IN UINT32 Size\r
24# );\r
25#\r
903e3124 26ASM_FUNC(__aeabi_llsl)\r
76aee8f4 27 subs r3,r2,#0x20\r
28 bpl 1f\r
29 rsb r3,r2,#0x20\r
30 lsl r1,r1,r2\r
31 orr r1,r1,r0,lsr r3\r
32 lsl r0,r0,r2\r
33 bx lr\r
341:\r
35 lsl r1,r0,r3\r
36 mov r0,#0\r
37 bx lr\r