]>
Commit | Line | Data |
---|---|---|
1 | #------------------------------------------------------------------------------\r | |
2 | #\r | |
3 | # Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r | |
4 | #\r | |
5 | # This program and the accompanying materials\r | |
6 | # are licensed and made available under the terms and conditions of the BSD License\r | |
7 | # which accompanies this distribution. The full text of the license may be found at\r | |
8 | # http://opensource.org/licenses/bsd-license.php\r | |
9 | #\r | |
10 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | #\r | |
13 | #------------------------------------------------------------------------------\r | |
14 | \r | |
15 | #include <AsmMacroIoLib.h>\r | |
16 | \r | |
17 | ASM_FUNC(__muldi3)\r | |
18 | stmfd sp!, {r4, r5, r6, r7, lr}\r | |
19 | add r7, sp, #12\r | |
20 | stmfd sp!, {r8, r10, r11}\r | |
21 | ldr r11, L4\r | |
22 | mov r4, r0, lsr #16\r | |
23 | and r8, r0, r11\r | |
24 | and ip, r2, r11\r | |
25 | mul lr, ip, r8\r | |
26 | mul ip, r4, ip\r | |
27 | sub sp, sp, #8\r | |
28 | add r10, ip, lr, lsr #16\r | |
29 | and ip, r10, r11\r | |
30 | and lr, lr, r11\r | |
31 | mov r6, r2, lsr #16\r | |
32 | str r4, [sp, #4]\r | |
33 | add r4, lr, ip, asl #16\r | |
34 | mul ip, r8, r6\r | |
35 | mov r5, r10, lsr #16\r | |
36 | add r10, ip, r4, lsr #16\r | |
37 | and ip, r10, r11\r | |
38 | and lr, r4, r11\r | |
39 | add r4, lr, ip, asl #16\r | |
40 | mul r0, r3, r0\r | |
41 | add ip, r5, r10, lsr #16\r | |
42 | ldr r5, [sp, #4]\r | |
43 | mla r0, r2, r1, r0\r | |
44 | mla r5, r6, r5, ip\r | |
45 | mov r10, r4\r | |
46 | add r11, r0, r5\r | |
47 | mov r1, r11\r | |
48 | mov r0, r4\r | |
49 | sub sp, r7, #24\r | |
50 | ldmfd sp!, {r8, r10, r11}\r | |
51 | ldmfd sp!, {r4, r5, r6, r7, pc}\r | |
52 | .p2align 2\r | |
53 | L5:\r | |
54 | .align 2\r | |
55 | L4:\r | |
56 | .long 65535\r |