]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/MultS64x64.c
Updated CpuFlushCacheLine() to return the address flushed.
[mirror_edk2.git] / MdePkg / Library / BaseLib / MultS64x64.c
1 /** @file
2 Math worker functions.
3
4 Copyright (c) 2006, Intel Corporation<BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #include "BaseLibInternals.h"
16
17 /**
18 Multiples a 64-bit signed integer by a 64-bit signed integer and generates a
19 64-bit signed result.
20
21 This function multiples the 64-bit signed value Multiplicand by the 64-bit
22 signed value Multiplier and generates a 64-bit signed result. This 64-bit
23 signed result is returned.
24
25 If the result overflows, then ASSERT().
26
27 @param Multiplicand A 64-bit signed value.
28 @param Multiplier A 64-bit signed value.
29
30 @return Multiplicand * Multiplier
31
32 **/
33 INT64
34 EFIAPI
35 MultS64x64 (
36 IN INT64 Multiplicand,
37 IN INT64 Multiplier
38 )
39 {
40 return (INT64)MultU64x64 (Multiplicand, Multiplier);
41 }