]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPkg/Library/CompilerIntrinsicsLib/Arm/modsi3.S
ArmPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / ArmPkg / Library / CompilerIntrinsicsLib / Arm / modsi3.S
CommitLineData
3402aac7 1#------------------------------------------------------------------------------\r
1e57a462 2#\r
3# Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
4#\r
4059386c 5# SPDX-License-Identifier: BSD-2-Clause-Patent\r
1e57a462 6#\r
7#------------------------------------------------------------------------------\r
8\r
903e3124 9#include <AsmMacroIoLib.h>\r
1e57a462 10\r
903e3124 11ASM_FUNC(__modsi3)\r
1e57a462 12 stmfd sp!, {r4, r5, r7, lr}\r
13 add r7, sp, #8\r
14 mov r5, r0\r
15 mov r4, r1\r
a559e060 16 bl ASM_PFX(__divsi3)\r
1e57a462 17 mul r0, r4, r0\r
18 rsb r0, r0, r5\r
19 ldmfd sp!, {r4, r5, r7, pc}\r