]>
Commit | Line | Data |
---|---|---|
f0a7a8ce | 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 | .text\r | |
15 | \r | |
16 | GCC_ASM_EXPORT(__ARM_ll_mullu)\r | |
17 | GCC_ASM_EXPORT(__aeabi_lmul)\r | |
18 | #\r | |
19 | #INT64\r | |
20 | #EFIAPI\r | |
21 | #__aeabi_lmul (\r | |
22 | # IN INT64 Multiplicand\r | |
23 | # IN INT32 Multiplier\r | |
24 | # );\r | |
25 | #\r | |
26 | ASM_PFX(__ARM_ll_mullu):\r | |
27 | mov r3, #0\r | |
28 | # Make upper part of INT64 Multiplier 0 and use __aeabi_lmul\r | |
29 | \r | |
30 | #\r | |
31 | #INT64\r | |
32 | #EFIAPI\r | |
33 | #__aeabi_lmul (\r | |
34 | # IN INT64 Multiplicand\r | |
35 | # IN INT64 Multiplier\r | |
36 | # );\r | |
37 | #\r | |
38 | ASM_PFX(__aeabi_lmul):\r | |
39 | stmdb sp!, {lr}\r | |
40 | mov lr, r0\r | |
41 | umull r0, ip, r2, lr\r | |
42 | mla r1, r2, r1, ip\r | |
43 | mla r1, r3, lr, r1\r | |
44 | ldmia sp!, {pc}\r |