]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPkg/Library/CompilerIntrinsicsLib/Arm/mullu.asm
ARM Packages: Removed trailing spaces
[mirror_edk2.git] / ArmPkg / Library / CompilerIntrinsicsLib / Arm / mullu.asm
CommitLineData
3402aac7 1//------------------------------------------------------------------------------\r
1e57a462 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\r
16 EXPORT __ARM_ll_mullu\r
17 EXPORT __aeabi_lmul\r
3402aac7 18\r
1e57a462 19 AREA Math, CODE, READONLY\r
20\r
21;\r
22;INT64\r
23;EFIAPI\r
24;__aeabi_lmul (\r
25; IN INT64 Multiplicand\r
26; IN INT32 Multiplier\r
27; );\r
28;\r
29__ARM_ll_mullu\r
30 mov r3, #0\r
31// Make upper part of INT64 Multiplier 0 and use __aeabi_lmul\r
32\r
33;\r
34;INT64\r
35;EFIAPI\r
36;__aeabi_lmul (\r
37; IN INT64 Multiplicand\r
38; IN INT64 Multiplier\r
39; );\r
40;\r
41__aeabi_lmul\r
42 stmdb sp!, {lr}\r
43 mov lr, r0\r
44 umull r0, ip, r2, lr\r
45 mla r1, r2, r1, ip\r
46 mla r1, r3, lr, r1\r
47 ldmia sp!, {pc}\r
3402aac7 48\r
1e57a462 49 END\r