]>
Commit | Line | Data |
---|---|---|
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_lasr | |
17 | ||
18 | AREA Math, CODE, READONLY | |
19 | ||
20 | ; | |
21 | ;UINT32 | |
22 | ;EFIAPI | |
23 | ;__aeabi_lasr ( | |
24 | ; IN UINT32 Dividen | |
25 | ; IN UINT32 Divisor | |
26 | ; ); | |
27 | ; | |
28 | __aeabi_lasr | |
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 | ASR r1,r1,r2 | |
35 | BX lr | |
36 | ASR r0,r1,r3 | |
37 | ASR r1,r1,#31 | |
38 | BX lr | |
39 | ||
40 | END | |
41 |