]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/Library/CompilerIntrinsicsLib/Arm/llsr.asm
881db106d9d7e62185a667e3e992019ff1f4e88b
[mirror_edk2.git] / ArmPkg / Library / CompilerIntrinsicsLib / Arm / llsr.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_llsr (
23 ; IN VOID *Destination,
24 ; IN VOID *Source,
25 ; IN UINT32 Size
26 ; );
27 ;
28 RVCT_ASM_EXPORT __aeabi_llsr
29 SUBS r3,r2,#0x20
30 BPL {pc} + 0x18 ; 0x1c
31 RSB r3,r2,#0x20
32 LSR r0,r0,r2
33 ORR r0,r0,r1,LSL r3
34 LSR r1,r1,r2
35 BX lr
36 LSR r0,r1,r3
37 MOV r1,#0
38 BX lr
39
40 END
41
42
43