]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPkg/Library/CompilerIntrinsicsLib/Arm/llsl.asm
Add some missing 64-bit math functions for gcc
[mirror_edk2.git] / ArmPkg / Library / CompilerIntrinsicsLib / Arm / llsl.asm
CommitLineData
2ef2b01e
A
1//------------------------------------------------------------------------------
2//
3// Copyright (c) 2008-2009 Apple Inc. All rights reserved.
4//
5// All rights reserved. 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 EXPORT __aeabi_llsl
17
18 AREA Math, CODE, READONLY
19
20;
21;VOID
22;EFIAPI
23;__aeabi_llsl (
24; IN VOID *Destination,
25; IN VOID *Source,
26; IN UINT32 Size
27; );
28;
29
30__aeabi_llsl
31 SUBS r3,r2,#0x20
32 BPL {pc} + 0x18 ; 0x1c
33 RSB r3,r2,#0x20
34 LSL r1,r1,r2
35 ORR r1,r1,r0,LSR r3
36 LSL r0,r0,r2
37 BX lr
38 LSL r1,r0,r3
39 MOV r0,#0
40 BX lr
41
42 END
43