diff options
author | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-09-24 04:17:16 +0000 |
---|---|---|
committer | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-09-24 04:17:16 +0000 |
commit | 24dcb5e50a4492ae2c4616d04e99794f6c19cfac (patch) | |
tree | a78daac72c0e435c197dd25b6820e921915c6889 /MdePkg/Library/BaseLib/CheckSum.c | |
parent | 9d5eaca403dce9a45565ec3bf490d75d643c15b5 (diff) | |
download | edk2-platforms-24dcb5e50a4492ae2c4616d04e99794f6c19cfac.tar.xz |
Update BaseLib according to code review comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5956 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseLib/CheckSum.c')
-rw-r--r-- | MdePkg/Library/BaseLib/CheckSum.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/MdePkg/Library/BaseLib/CheckSum.c b/MdePkg/Library/BaseLib/CheckSum.c index 4991923f47..9d031bafa2 100644 --- a/MdePkg/Library/BaseLib/CheckSum.c +++ b/MdePkg/Library/BaseLib/CheckSum.c @@ -2,7 +2,7 @@ Utility functions to generate checksum based on 2's complement
algorithm.
- Copyright (c) 2007, Intel Corporation<BR>
+ Copyright (c) 2007 - 2008, Intel Corporation<BR>
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
@@ -38,8 +38,8 @@ UINT8
EFIAPI
CalculateSum8 (
- IN CONST UINT8 *Buffer,
- IN UINTN Length
+ IN CONST UINT8 *Buffer,
+ IN UINTN Length
)
{
UINT8 Sum;
@@ -71,14 +71,14 @@ CalculateSum8 ( @param Buffer Pointer to the buffer to carry out the checksum operation.
@param Length The size, in bytes, of Buffer.
- @return Checksum The 2's complement checksum of Buffer.
+ @return Checksum The 2's complement checksum of Buffer.
**/
UINT8
EFIAPI
CalculateCheckSum8 (
- IN CONST UINT8 *Buffer,
- IN UINTN Length
+ IN CONST UINT8 *Buffer,
+ IN UINTN Length
)
{
UINT8 CheckSum;
@@ -113,8 +113,8 @@ CalculateCheckSum8 ( UINT16
EFIAPI
CalculateSum16 (
- IN CONST UINT16 *Buffer,
- IN UINTN Length
+ IN CONST UINT16 *Buffer,
+ IN UINTN Length
)
{
UINT16 Sum;
@@ -152,14 +152,14 @@ CalculateSum16 ( @param Buffer Pointer to the buffer to carry out the checksum operation.
@param Length The size, in bytes, of Buffer.
- @return Checksum The 2's complement checksum of Buffer.
+ @return Checksum The 2's complement checksum of Buffer.
**/
UINT16
EFIAPI
CalculateCheckSum16 (
- IN CONST UINT16 *Buffer,
- IN UINTN Length
+ IN CONST UINT16 *Buffer,
+ IN UINTN Length
)
{
UINT16 CheckSum;
@@ -195,8 +195,8 @@ CalculateCheckSum16 ( UINT32
EFIAPI
CalculateSum32 (
- IN CONST UINT32 *Buffer,
- IN UINTN Length
+ IN CONST UINT32 *Buffer,
+ IN UINTN Length
)
{
UINT32 Sum;
@@ -234,14 +234,14 @@ CalculateSum32 ( @param Buffer Pointer to the buffer to carry out the checksum operation.
@param Length The size, in bytes, of Buffer.
- @return Checksum The 2's complement checksum of Buffer.
+ @return Checksum The 2's complement checksum of Buffer.
**/
UINT32
EFIAPI
CalculateCheckSum32 (
- IN CONST UINT32 *Buffer,
- IN UINTN Length
+ IN CONST UINT32 *Buffer,
+ IN UINTN Length
)
{
UINT32 CheckSum;
@@ -277,8 +277,8 @@ CalculateCheckSum32 ( UINT64
EFIAPI
CalculateSum64 (
- IN CONST UINT64 *Buffer,
- IN UINTN Length
+ IN CONST UINT64 *Buffer,
+ IN UINTN Length
)
{
UINT64 Sum;
@@ -316,14 +316,14 @@ CalculateSum64 ( @param Buffer Pointer to the buffer to carry out the checksum operation.
@param Length The size, in bytes, of Buffer.
- @return Checksum The 2's complement checksum of Buffer.
+ @return Checksum The 2's complement checksum of Buffer.
**/
UINT64
EFIAPI
CalculateCheckSum64 (
- IN CONST UINT64 *Buffer,
- IN UINTN Length
+ IN CONST UINT64 *Buffer,
+ IN UINTN Length
)
{
UINT64 CheckSum;
|