• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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;UINT32
21;EFIAPI
22;__aeabi_lasr (
23;  IN UINT32  Dividen
24;  IN UINT32  Divisor
25;  );
26;
27 RVCT_ASM_EXPORT __aeabi_lasr
28    SUBS     r3,r2,#0x20
29    BPL      {pc} + 0x18  ; 0x1c
30    RSB      r3,r2,#0x20
31    LSR      r0,r0,r2
32    ORR      r0,r0,r1,LSL r3
33    ASR      r1,r1,r2
34    BX       lr
35    ASR      r0,r1,r3
36    ASR      r1,r1,#31
37    BX       lr
38
39    END
40
41