]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseLib/MultU64x32.c
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseLib / MultU64x32.c
CommitLineData
e1f414b6 1/** @file\r
2 Math worker functions.\r
3\r
127010dd 4 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
9344f092 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
e1f414b6 6\r
7**/\r
8\r
1efcc4ae 9\r
f734a10a 10\r
e1f414b6 11\r
12#include "BaseLibInternals.h"\r
13\r
14/**\r
127010dd 15 Multiplies a 64-bit unsigned integer by a 32-bit unsigned integer and\r
e1f414b6 16 generates a 64-bit unsigned result.\r
17\r
127010dd 18 This function multiplies the 64-bit unsigned value Multiplicand by the 32-bit\r
e1f414b6 19 unsigned value Multiplier and generates a 64-bit unsigned result. This 64-\r
20 bit unsigned result is returned.\r
21\r
22 @param Multiplicand A 64-bit unsigned value.\r
23 @param Multiplier A 32-bit unsigned value.\r
24\r
127010dd 25 @return Multiplicand * Multiplier.\r
e1f414b6 26\r
27**/\r
28UINT64\r
29EFIAPI\r
30MultU64x32 (\r
31 IN UINT64 Multiplicand,\r
32 IN UINT32 Multiplier\r
33 )\r
34{\r
35 UINT64 Result;\r
36\r
37 Result = InternalMathMultU64x32 (Multiplicand, Multiplier);\r
38\r
39 return Result;\r
40}\r