1 | /** @file
|
---|
2 | Math worker functions.
|
---|
3 |
|
---|
4 | Copyright (c) 2006 - 2010, 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 | Multiplies a 64-bit signed integer by a 64-bit signed integer and generates a
|
---|
16 | 64-bit signed result.
|
---|
17 |
|
---|
18 | This function multiplies the 64-bit signed value Multiplicand by the 64-bit
|
---|
19 | signed value Multiplier and generates a 64-bit signed result. This 64-bit
|
---|
20 | signed result is returned.
|
---|
21 |
|
---|
22 | @param Multiplicand A 64-bit signed value.
|
---|
23 | @param Multiplier A 64-bit signed value.
|
---|
24 |
|
---|
25 | @return Multiplicand * Multiplier.
|
---|
26 |
|
---|
27 | **/
|
---|
28 | INT64
|
---|
29 | EFIAPI
|
---|
30 | MultS64x64 (
|
---|
31 | IN INT64 Multiplicand,
|
---|
32 | IN INT64 Multiplier
|
---|
33 | )
|
---|
34 | {
|
---|
35 | return (INT64)MultU64x64 ((UINT64) Multiplicand, (UINT64) Multiplier);
|
---|
36 | }
|
---|