2007-06-22 05:21:45 +02:00
|
|
|
/** @file
|
|
|
|
Math worker functions.
|
|
|
|
|
2010-06-24 02:20:35 +02:00
|
|
|
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:06:00 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2007-06-22 05:21:45 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
2008-09-17 09:46:17 +02:00
|
|
|
|
2007-06-30 01:22:13 +02:00
|
|
|
|
2007-06-22 05:21:45 +02:00
|
|
|
|
|
|
|
#include "BaseLibInternals.h"
|
|
|
|
|
|
|
|
/**
|
2010-06-24 02:20:35 +02:00
|
|
|
Multiplies a 64-bit unsigned integer by a 32-bit unsigned integer and
|
2007-06-22 05:21:45 +02:00
|
|
|
generates a 64-bit unsigned result.
|
|
|
|
|
2010-06-24 02:20:35 +02:00
|
|
|
This function multiplies the 64-bit unsigned value Multiplicand by the 32-bit
|
2007-06-22 05:21:45 +02:00
|
|
|
unsigned value Multiplier and generates a 64-bit unsigned result. This 64-
|
|
|
|
bit unsigned result is returned.
|
|
|
|
|
|
|
|
@param Multiplicand A 64-bit unsigned value.
|
|
|
|
@param Multiplier A 32-bit unsigned value.
|
|
|
|
|
2010-06-24 02:20:35 +02:00
|
|
|
@return Multiplicand * Multiplier.
|
2007-06-22 05:21:45 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
UINT64
|
|
|
|
EFIAPI
|
|
|
|
MultU64x32 (
|
|
|
|
IN UINT64 Multiplicand,
|
|
|
|
IN UINT32 Multiplier
|
|
|
|
)
|
|
|
|
{
|
|
|
|
UINT64 Result;
|
|
|
|
|
|
|
|
Result = InternalMathMultU64x32 (Multiplicand, Multiplier);
|
|
|
|
|
|
|
|
return Result;
|
|
|
|
}
|