mullu.S revision 1.1 1 /* $NetBSD: mullu.S,v 1.1 2018/08/16 18:17:47 jmcneill Exp $ */
2
3 #------------------------------------------------------------------------------
4 #
5 # Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
6 #
7 # This program and the accompanying materials
8 # are licensed and made available under the terms and conditions of the BSD License
9 # which accompanies this distribution. The full text of the license may be found at
10 # http://opensource.org/licenses/bsd-license.php
11 #
12 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 #
15 #------------------------------------------------------------------------------
16
17 #include "edk2asm.h"
18
19 .text
20 GCC_ASM_EXPORT(__aeabi_lmul)
21 #
22 #INT64
23 #EFIAPI
24 #__aeabi_lmul (
25 # IN INT64 Multiplicand
26 # IN INT64 Multiplier
27 # );
28 #
29 ASM_PFX(__aeabi_lmul):
30 stmdb sp!, {lr}
31 mov lr, r0
32 umull r0, ip, r2, lr
33 mla r1, r2, r1, ip
34 mla r1, r3, lr, r1
35 ldmia sp!, {pc}
36