]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/Library/CompilerIntrinsicsLib/Arm/llsl.asm
a31e18666ae2f155503eb7a00b85028833e07b5b
[mirror_edk2.git] / ArmPkg / Library / CompilerIntrinsicsLib / Arm / llsl.asm
1 //------------------------------------------------------------------------------
2 //
3 // Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
4 //
5 // This program and the accompanying materials
6 // are licensed and made available under the terms and conditions of the BSD License
7 // which accompanies this distribution. The full text of the license may be found at
8 // http://opensource.org/licenses/bsd-license.php
9 //
10 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 //
13 //------------------------------------------------------------------------------
14
15
16
17 INCLUDE AsmMacroExport.inc
18
19 ;
20 ;VOID
21 ;EFIAPI
22 ;__aeabi_llsl (
23 ; IN VOID *Destination,
24 ; IN VOID *Source,
25 ; IN UINT32 Size
26 ; );
27 ;
28
29 RVCT_ASM_EXPORT __aeabi_llsl
30 SUBS r3,r2,#0x20
31 BPL {pc} + 0x18 ; 0x1c
32 RSB r3,r2,#0x20
33 LSL r1,r1,r2
34 ORR r1,r1,r0,LSR r3
35 LSL r0,r0,r2
36 BX lr
37 LSL r1,r0,r3
38 MOV r0,#0
39 BX lr
40
41 END
42