]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/ModU64x32.c
4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include "BaseLibInternals.h"
12 Divides a 64-bit unsigned integer by a 32-bit unsigned integer and generates
13 a 32-bit unsigned remainder.
15 This function divides the 64-bit unsigned value Dividend by the 32-bit
16 unsigned value Divisor and generates a 32-bit remainder. This function
17 returns the 32-bit unsigned remainder.
19 If Divisor is 0, then ASSERT().
21 @param Dividend A 64-bit unsigned value.
22 @param Divisor A 32-bit unsigned value.
24 @return Dividend % Divisor.
34 ASSERT (Divisor
!= 0);
35 return InternalMathModU64x32 (Dividend
, Divisor
);