]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/DivU64x64Remainder.c
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Library / BaseLib / DivU64x64Remainder.c
CommitLineData
3eb9473e 1/*++\r
2\r
2c7e5c2f
HT
3Copyright (c) 2004 - 2006, Intel Corporation. All rights reserved.<BR>\r
4This program and the accompanying materials \r
3eb9473e 5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 DivU64x64Remainder.c\r
15 \r
16Abstract: \r
17\r
18 Math worker functions.\r
19\r
20--*/\r
21\r
c7f33ca4 22#include "BaseLibInternals.h"\r
3eb9473e 23\r
24/**\r
25 Divides a 64-bit unsigned integer by a 64-bit unsigned integer and generates\r
26 a 64-bit unsigned result and an optional 64-bit unsigned remainder.\r
27\r
28 This function divides the 64-bit unsigned value Dividend by the 64-bit\r
29 unsigned value Divisor and generates a 64-bit unsigned quotient. If Remainder\r
30 is not NULL, then the 64-bit unsigned remainder is returned in Remainder.\r
31 This function returns the 64-bit unsigned quotient.\r
32\r
33 If Divisor is 0, then ASSERT().\r
34\r
35 @param Dividend A 64-bit unsigned value.\r
36 @param Divisor A 64-bit unsigned value.\r
37 @param Remainder A pointer to a 64-bit unsigned value. This parameter is\r
38 optional and may be NULL.\r
39\r
40 @return Dividend / Divisor\r
41\r
42**/\r
43UINT64\r
44EFIAPI\r
45DivU64x64Remainder (\r
46 IN UINT64 Dividend,\r
47 IN UINT64 Divisor,\r
48 OUT UINT64 *Remainder OPTIONAL\r
49 )\r
50{\r
51 ASSERT (Divisor != 0);\r
52 return InternalMathDivRemU64x64 (Dividend, Divisor, Remainder);\r
53}\r