Last change
on this file since 80721 was 80721, checked in by vboxsync, 6 years ago |
Devices/EFI/FirmwareNew: Start upgrade process to edk2-stable201908 (compiles on Windows and works to some extent), bugref:4643
|
-
Property svn:eol-style
set to
native
|
File size:
864 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 |
|
---|
10 |
|
---|
11 |
|
---|
12 | #include "BaseLibInternals.h"
|
---|
13 |
|
---|
14 | /**
|
---|
15 | Divides a 64-bit unsigned integer by a 32-bit unsigned integer and generates
|
---|
16 | a 64-bit unsigned result.
|
---|
17 |
|
---|
18 | This function divides the 64-bit unsigned value Dividend by the 32-bit
|
---|
19 | unsigned value Divisor and generates a 64-bit unsigned quotient. This
|
---|
20 | function returns the 64-bit unsigned quotient.
|
---|
21 |
|
---|
22 | If Divisor is 0, then ASSERT().
|
---|
23 |
|
---|
24 | @param Dividend A 64-bit unsigned value.
|
---|
25 | @param Divisor A 32-bit unsigned value.
|
---|
26 |
|
---|
27 | @return Dividend / Divisor
|
---|
28 |
|
---|
29 | **/
|
---|
30 | UINT64
|
---|
31 | EFIAPI
|
---|
32 | DivU64x32 (
|
---|
33 | IN UINT64 Dividend,
|
---|
34 | IN UINT32 Divisor
|
---|
35 | )
|
---|
36 | {
|
---|
37 | ASSERT (Divisor != 0);
|
---|
38 | return InternalMathDivU64x32 (Dividend, Divisor);
|
---|
39 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.