X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FMath64.c;h=7506b9b6de77ef1a32463e8dc57a2156f4ec05e6;hb=5277dc8829cc40fab9e8856d03316bc4c32dba1f;hp=5a932ac8a57d4f57a7bf509f2a78861300d249a9;hpb=1efcc4ae46f52e3845923ffbab68426e068709d2;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseLib/Math64.c b/MdePkg/Library/BaseLib/Math64.c index 5a932ac8a5..7506b9b6de 100644 --- a/MdePkg/Library/BaseLib/Math64.c +++ b/MdePkg/Library/BaseLib/Math64.c @@ -2,8 +2,8 @@ Leaf math worker functions that require 64-bit arithmetic support from the compiler. - Copyright (c) 2006, Intel Corporation
- All rights reserved. This program and the accompanying materials + Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.
+ This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php @@ -13,9 +13,6 @@ **/ - - - #include "BaseLibInternals.h" /** @@ -71,8 +68,6 @@ InternalMathRShiftU64 ( This function shifts the 64-bit value Operand to the right by Count bits. The high Count bits are set to bit 63 of Operand. The shifted value is returned. - If Count is greater than 63, then ASSERT(). - @param Operand The 64-bit operand to shift right. @param Count The number of bits to shift right. @@ -164,7 +159,7 @@ InternalMathRRotU64 ( @param Operand A 64-bit unsigned value. - @return The byte swaped Operand. + @return The byte swapped Operand. **/ UINT64 @@ -239,7 +234,7 @@ InternalMathMultU64x64 ( unsigned value Divisor and generates a 64-bit unsigned quotient. This function returns the 64-bit unsigned quotient. - @param Dividend A 64-bit unsigned value. + @param Dividend A 64-bit unsigned value. @param Divisor A 32-bit unsigned value. @return Dividend / Divisor @@ -256,8 +251,8 @@ InternalMathDivU64x32 ( } /** - Divides a 64-bit unsigned integer by a 32-bit unsigned integer - and generates a 32-bit unsigned remainder. + Divides a 64-bit unsigned integer by a 32-bit unsigned integer and + generates a 32-bit unsigned remainder. This function divides the 64-bit unsigned value Dividend by the 32-bit unsigned value Divisor and generates a 32-bit remainder. This function @@ -301,7 +296,7 @@ EFIAPI InternalMathDivRemU64x32 ( IN UINT64 Dividend, IN UINT32 Divisor, - OUT UINT32 *Remainder OPTIONAL + OUT UINT32 *Remainder OPTIONAL ) { if (Remainder != NULL) { @@ -332,7 +327,7 @@ EFIAPI InternalMathDivRemU64x64 ( IN UINT64 Dividend, IN UINT64 Divisor, - OUT UINT64 *Remainder OPTIONAL + OUT UINT64 *Remainder OPTIONAL ) { if (Remainder != NULL) { @@ -343,12 +338,12 @@ InternalMathDivRemU64x64 ( /** Divides a 64-bit signed integer by a 64-bit signed integer and - generates a 64-bit signed result and a optional 64-bit signed remainder. + generates a 64-bit signed result and an optional 64-bit signed remainder. - This function divides the 64-bit unsigned value Dividend by the 64-bit - unsigned value Divisor and generates a 64-bit unsigned quotient. If Remainder - is not NULL, then the 64-bit unsigned remainder is returned in Remainder. - This function returns the 64-bit unsigned quotient. + This function divides the 64-bit signed value Dividend by the 64-bit + signed value Divisor and generates a 64-bit signed quotient. If Remainder + is not NULL, then the 64-bit signed remainder is returned in Remainder. + This function returns the 64-bit signed quotient. @param Dividend A 64-bit signed value. @param Divisor A 64-bit signed value.