Coverage Report

Created: 2024-10-17 06:29

/src/hbfa-fl/HBFA/UefiHostTestPkg/Library/BaseLibHost/MultU64x32.c
Line
Count
Source
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
#include <Base.h>
10
#include <Library/BaseLib.h>
11
#include <Library/DebugLib.h>
12
13
UINT64
14
EFIAPI
15
InternalMathMultU64x32 (
16
  IN      UINT64                    Multiplicand,
17
  IN      UINT32                    Multiplier
18
  );
19
20
/**
21
  Multiplies a 64-bit unsigned integer by a 32-bit unsigned integer and
22
  generates a 64-bit unsigned result.
23
24
  This function multiplies the 64-bit unsigned value Multiplicand by the 32-bit
25
  unsigned value Multiplier and generates a 64-bit unsigned result. This 64-
26
  bit unsigned result is returned.
27
28
  @param  Multiplicand  A 64-bit unsigned value.
29
  @param  Multiplier    A 32-bit unsigned value.
30
31
  @return Multiplicand * Multiplier.
32
33
**/
34
UINT64
35
EFIAPI
36
MultU64x32 (
37
  IN      UINT64                    Multiplicand,
38
  IN      UINT32                    Multiplier
39
  )
40
9.88k
{
41
9.88k
  UINT64                            Result;
42
43
9.88k
  Result = InternalMathMultU64x32 (Multiplicand, Multiplier);
44
45
9.88k
  return Result;
46
9.88k
}