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 64-bit unsigned integer and generates
16 a 64-bit unsigned result and an optional 64-bit unsigned remainder.
18 This function divides the 64-bit unsigned value Dividend by the 64-bit
19 unsigned value Divisor and generates a 64-bit unsigned quotient. If Remainder
20 is not NULL, then the 64-bit unsigned remainder is returned in Remainder.
21 This function returns the 64-bit unsigned quotient.
23 If Divisor is 0, then ASSERT().
25 @param Dividend A 64-bit unsigned value.
26 @param Divisor A 64-bit unsigned value.
27 @param Remainder A pointer to a 64-bit unsigned value. This parameter is
28 optional and may be NULL.
30 @return Dividend / Divisor
38 OUT UINT64
*Remainder OPTIONAL
41 ASSERT (Divisor
!= 0);
42 return InternalMathDivRemU64x64 (Dividend
, Divisor
, Remainder
);