]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | Math worker functions.\r | |
3 | \r | |
4 | Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r | |
5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
6 | \r | |
7 | **/\r | |
8 | \r | |
9 | #include "BaseLibInternals.h"\r | |
10 | \r | |
11 | /**\r | |
12 | Divides a 64-bit unsigned integer by a 32-bit unsigned integer and generates\r | |
13 | a 32-bit unsigned remainder.\r | |
14 | \r | |
15 | This function divides the 64-bit unsigned value Dividend by the 32-bit\r | |
16 | unsigned value Divisor and generates a 32-bit remainder. This function\r | |
17 | returns the 32-bit unsigned remainder.\r | |
18 | \r | |
19 | If Divisor is 0, then ASSERT().\r | |
20 | \r | |
21 | @param Dividend A 64-bit unsigned value.\r | |
22 | @param Divisor A 32-bit unsigned value.\r | |
23 | \r | |
24 | @return Dividend % Divisor.\r | |
25 | \r | |
26 | **/\r | |
27 | UINT32\r | |
28 | EFIAPI\r | |
29 | ModU64x32 (\r | |
30 | IN UINT64 Dividend,\r | |
31 | IN UINT32 Divisor\r | |
32 | )\r | |
33 | {\r | |
34 | ASSERT (Divisor != 0);\r | |
35 | return InternalMathModU64x32 (Dividend, Divisor);\r | |
36 | }\r |