X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FMath64.c;h=83d76847213e3b181f3aa59403cb952e38377818;hb=775180651d4bd91cc021a0a4d6c229848dde0599;hp=0b127c70b1037541ab948c8e229d2bc6b200b98f;hpb=6767917b10a1b28f3dffbf9241b7a4607eb34a2a;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseLib/Math64.c b/MdePkg/Library/BaseLib/Math64.c index 0b127c70b1..83d7684721 100644 --- a/MdePkg/Library/BaseLib/Math64.c +++ b/MdePkg/Library/BaseLib/Math64.c @@ -2,11 +2,11 @@ Leaf math worker functions that require 64-bit arithmetic support from the compiler. - Copyright (c) 2006 - 2008, Intel Corporation
- All rights reserved. This program and the accompanying materials + Copyright (c) 2006 - 2010, 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 + http://opensource.org/licenses/bsd-license.php. THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. @@ -25,7 +25,7 @@ @param Operand The 64-bit operand to shift left. @param Count The number of bits to shift left. - @return Operand << Count + @return Operand << Count. **/ UINT64 @@ -48,7 +48,7 @@ InternalMathLShiftU64 ( @param Operand The 64-bit operand to shift right. @param Count The number of bits to shift right. - @return Operand >> Count + @return Operand >> Count. **/ UINT64 @@ -68,12 +68,10 @@ 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. - @return Operand arithmetically shifted right by Count + @return Operand arithmetically shifted right by Count. **/ UINT64 @@ -115,7 +113,7 @@ InternalMathARShiftU64 ( @param Operand The 64-bit operand to rotate left. @param Count The number of bits to rotate left. - @return Operand <<< Count + @return Operand <<< Count. **/ UINT64 @@ -139,7 +137,7 @@ InternalMathLRotU64 ( @param Operand The 64-bit operand to rotate right. @param Count The number of bits to rotate right. - @return Operand >>> Count + @return Operand >>> Count. **/ UINT64 @@ -161,7 +159,7 @@ InternalMathRRotU64 ( @param Operand A 64-bit unsigned value. - @return The byte swaped Operand. + @return The byte swapped Operand. **/ UINT64 @@ -180,10 +178,10 @@ InternalMathSwapBytes64 ( } /** - Multiples a 64-bit unsigned integer by a 32-bit unsigned integer + Multiplies a 64-bit unsigned integer by a 32-bit unsigned integer and generates a 64-bit unsigned result. - This function multiples the 64-bit unsigned value Multiplicand by the 32-bit + This function multiplies the 64-bit unsigned value Multiplicand by the 32-bit unsigned value Multiplier and generates a 64-bit unsigned result. This 64- bit unsigned result is returned. @@ -205,17 +203,17 @@ InternalMathMultU64x32 ( /** - Multiples a 64-bit unsigned integer by a 64-bit unsigned integer + Multiplies a 64-bit unsigned integer by a 64-bit unsigned integer and generates a 64-bit unsigned result. - This function multiples the 64-bit unsigned value Multiplicand by the 64-bit + This function multiplies the 64-bit unsigned value Multiplicand by the 64-bit 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 64-bit unsigned value. - @return Multiplicand * Multiplier + @return Multiplicand * Multiplier. **/ UINT64 @@ -236,10 +234,10 @@ 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 + @return Dividend / Divisor. **/ UINT64 @@ -253,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 @@ -263,7 +261,7 @@ InternalMathDivU64x32 ( @param Dividend A 64-bit unsigned value. @param Divisor A 32-bit unsigned value. - @return Dividend % Divisor + @return Dividend % Divisor. **/ UINT32 @@ -290,7 +288,7 @@ InternalMathModU64x32 ( @param Remainder A pointer to a 32-bit unsigned value. This parameter is optional and may be NULL. - @return Dividend / Divisor + @return Dividend / Divisor. **/ UINT64 @@ -298,7 +296,7 @@ EFIAPI InternalMathDivRemU64x32 ( IN UINT64 Dividend, IN UINT32 Divisor, - OUT UINT32 *Remainder OPTIONAL + OUT UINT32 *Remainder OPTIONAL ) { if (Remainder != NULL) { @@ -329,7 +327,7 @@ EFIAPI InternalMathDivRemU64x64 ( IN UINT64 Dividend, IN UINT64 Divisor, - OUT UINT64 *Remainder OPTIONAL + OUT UINT64 *Remainder OPTIONAL ) { if (Remainder != NULL) { @@ -340,7 +338,7 @@ 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 signed value Dividend by the 64-bit signed value Divisor and generates a 64-bit signed quotient. If Remainder @@ -352,7 +350,7 @@ InternalMathDivRemU64x64 ( @param Remainder A pointer to a 64-bit signed value. This parameter is optional and may be NULL. - @return Dividend / Divisor + @return Dividend / Divisor. **/ INT64