summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/BaseLib/CheckSum.c
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2008-09-25 04:56:53 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2008-09-25 04:56:53 +0000
commite389c39b7b6e0fcf4ca6f4ef5fefcf500f7be2d1 (patch)
tree89731227982ccf65a51bae790a766de778de45b8 /MdePkg/Library/BaseLib/CheckSum.c
parent30ab8a129635887190616b898e6a61b6145f6012 (diff)
downloadedk2-e389c39b7b6e0fcf4ca6f4ef5fefcf500f7be2d1.tar.gz
edk2-e389c39b7b6e0fcf4ca6f4ef5fefcf500f7be2d1.tar.bz2
edk2-e389c39b7b6e0fcf4ca6f4ef5fefcf500f7be2d1.zip
Clean up code according to code review.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5986 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseLib/CheckSum.c')
-rw-r--r--MdePkg/Library/BaseLib/CheckSum.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/MdePkg/Library/BaseLib/CheckSum.c b/MdePkg/Library/BaseLib/CheckSum.c
index 9d031bafa2..38e6dacf44 100644
--- a/MdePkg/Library/BaseLib/CheckSum.c
+++ b/MdePkg/Library/BaseLib/CheckSum.c
@@ -13,10 +13,8 @@
**/
-
#include <BaseLibInternals.h>
-
/**
Calculate the sum of all elements in a buffer in unit of UINT8.
During calculation, the carry bits are dropped.
@@ -32,7 +30,7 @@
@param Buffer Pointer to the buffer to carry out the sum operation.
@param Length The size, in bytes, of Buffer .
- @return Sum The sum of Buffer with carry bits dropped during additions.
+ @return The sum of Buffer with carry bits dropped during additions.
**/
UINT8
@@ -71,7 +69,7 @@ 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 The 2's complement checksum of Buffer.
**/
UINT8
@@ -107,7 +105,7 @@ CalculateCheckSum8 (
@param Buffer Pointer to the buffer to carry out the sum operation.
@param Length The size, in bytes, of Buffer.
- @return Sum The sum of Buffer with carry bits dropped during additions.
+ @return The sum of Buffer with carry bits dropped during additions.
**/
UINT16
@@ -152,7 +150,7 @@ 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 The 2's complement checksum of Buffer.
**/
UINT16
@@ -189,7 +187,7 @@ CalculateCheckSum16 (
@param Buffer Pointer to the buffer to carry out the sum operation.
@param Length The size, in bytes, of Buffer.
- @return Sum The sum of Buffer with carry bits dropped during additions.
+ @return The sum of Buffer with carry bits dropped during additions.
**/
UINT32
@@ -234,7 +232,7 @@ 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 The 2's complement checksum of Buffer.
**/
UINT32
@@ -271,7 +269,7 @@ CalculateCheckSum32 (
@param Buffer Pointer to the buffer to carry out the sum operation.
@param Length The size, in bytes, of Buffer.
- @return Sum The sum of Buffer with carry bits dropped during additions.
+ @return The sum of Buffer with carry bits dropped during additions.
**/
UINT64
@@ -316,7 +314,7 @@ 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 The 2's complement checksum of Buffer.
**/
UINT64