]>
Commit | Line | Data |
---|---|---|
e1f414b6 | 1 | /** @file\r |
2 | Math worker functions.\r | |
3 | \r | |
bb817c56 | 4 | Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r |
9344f092 | 5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
e1f414b6 | 6 | \r |
7 | **/\r | |
8 | \r | |
e1f414b6 | 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 | |
127010dd | 24 | @return Dividend % Divisor.\r |
e1f414b6 | 25 | \r |
26 | **/\r | |
27 | UINT32\r | |
28 | EFIAPI\r | |
29 | ModU64x32 (\r | |
2f88bd3a MK |
30 | IN UINT64 Dividend,\r |
31 | IN UINT32 Divisor\r | |
e1f414b6 | 32 | )\r |
33 | {\r | |
34 | ASSERT (Divisor != 0);\r | |
35 | return InternalMathModU64x32 (Dividend, Divisor);\r | |
36 | }\r |