Last change
on this file was 99404, checked in by vboxsync, 23 months ago |
Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643
|
-
Property svn:eol-style
set to
native
|
File size:
822 bytes
|
Line | |
---|
1 | /** @file
|
---|
2 | Math worker functions.
|
---|
3 |
|
---|
4 | Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
---|
5 | SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
6 |
|
---|
7 | **/
|
---|
8 |
|
---|
9 | #include "BaseLibInternals.h"
|
---|
10 |
|
---|
11 | /**
|
---|
12 | Divides a 64-bit unsigned integer by a 32-bit unsigned integer and generates
|
---|
13 | a 32-bit unsigned remainder.
|
---|
14 |
|
---|
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.
|
---|
18 |
|
---|
19 | If Divisor is 0, then ASSERT().
|
---|
20 |
|
---|
21 | @param Dividend A 64-bit unsigned value.
|
---|
22 | @param Divisor A 32-bit unsigned value.
|
---|
23 |
|
---|
24 | @return Dividend % Divisor.
|
---|
25 |
|
---|
26 | **/
|
---|
27 | UINT32
|
---|
28 | EFIAPI
|
---|
29 | ModU64x32 (
|
---|
30 | IN UINT64 Dividend,
|
---|
31 | IN UINT32 Divisor
|
---|
32 | )
|
---|
33 | {
|
---|
34 | ASSERT (Divisor != 0);
|
---|
35 | return InternalMathModU64x32 (Dividend, Divisor);
|
---|
36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.