]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseLib/DivU64x32.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdePkg / Library / BaseLib / DivU64x32.c
CommitLineData
e1f414b6 1/** @file\r
2 Math worker functions.\r
3\r
bb817c56 4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
9344f092 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
e1f414b6 6\r
7**/\r
8\r
e1f414b6 9#include "BaseLibInternals.h"\r
10\r
11/**\r
12 Divides a 64-bit unsigned integer by a 32-bit unsigned integer and generates\r
13 a 64-bit unsigned result.\r
14\r
15 This function divides the 64-bit unsigned value Dividend by the 32-bit\r
16 unsigned value Divisor and generates a 64-bit unsigned quotient. This\r
17 function returns the 64-bit unsigned quotient.\r
18\r
19 If Divisor is 0, then ASSERT().\r
20\r
21 @param Dividend A 64-bit unsigned value.\r
22 @param Divisor A 32-bit unsigned value.\r
23\r
24 @return Dividend / Divisor\r
25\r
26**/\r
27UINT64\r
28EFIAPI\r
29DivU64x32 (\r
2f88bd3a
MK
30 IN UINT64 Dividend,\r
31 IN UINT32 Divisor\r
e1f414b6 32 )\r
33{\r
34 ASSERT (Divisor != 0);\r
35 return InternalMathDivU64x32 (Dividend, Divisor);\r
36}\r