]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseLib/DivU64x32.c
MdePkg: Replace BSD License with BSD+Patent License
[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
1efcc4ae 9\r
f734a10a 10\r
e1f414b6 11\r
12#include "BaseLibInternals.h"\r
13\r
14/**\r
15 Divides a 64-bit unsigned integer by a 32-bit unsigned integer and generates\r
16 a 64-bit unsigned result.\r
17\r
18 This function divides the 64-bit unsigned value Dividend by the 32-bit\r
19 unsigned value Divisor and generates a 64-bit unsigned quotient. This\r
20 function returns the 64-bit unsigned quotient.\r
21\r
22 If Divisor is 0, then ASSERT().\r
23\r
24 @param Dividend A 64-bit unsigned value.\r
25 @param Divisor A 32-bit unsigned value.\r
26\r
27 @return Dividend / Divisor\r
28\r
29**/\r
30UINT64\r
31EFIAPI\r
32DivU64x32 (\r
33 IN UINT64 Dividend,\r
34 IN UINT32 Divisor\r
35 )\r
36{\r
37 ASSERT (Divisor != 0);\r
38 return InternalMathDivU64x32 (Dividend, Divisor);\r
39}\r