]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/DivU64x32.c
fa377ec5514c797586c4f01a03d37ff39672229d
4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
12 #include "BaseLibInternals.h"
15 Divides a 64-bit unsigned integer by a 32-bit unsigned integer and generates
16 a 64-bit unsigned result.
18 This function divides the 64-bit unsigned value Dividend by the 32-bit
19 unsigned value Divisor and generates a 64-bit unsigned quotient. This
20 function returns the 64-bit unsigned quotient.
22 If Divisor is 0, then ASSERT().
24 @param Dividend A 64-bit unsigned value.
25 @param Divisor A 32-bit unsigned value.
27 @return Dividend / Divisor
37 ASSERT (Divisor
!= 0);
38 return InternalMathDivU64x32 (Dividend
, Divisor
);