summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib
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
parent30ab8a129635887190616b898e6a61b6145f6012 (diff)
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')
-rw-r--r--MdePkg/Library/BaseLib/CheckSum.c18
-rw-r--r--MdePkg/Library/BaseLib/ChkStkGcc.c8
-rw-r--r--MdePkg/Library/BaseLib/Cpu.c8
3 files changed, 13 insertions, 21 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
diff --git a/MdePkg/Library/BaseLib/ChkStkGcc.c b/MdePkg/Library/BaseLib/ChkStkGcc.c
index ea68aea1e5..a700d312ee 100644
--- a/MdePkg/Library/BaseLib/ChkStkGcc.c
+++ b/MdePkg/Library/BaseLib/ChkStkGcc.c
@@ -1,7 +1,7 @@
/** @file
- Implementation of synchronization functions.
+ Provides hack function for passng GCC build.
- Copyright (c) 2006 - 2007, Intel Corporation<BR>
+ Copyright (c) 2006 - 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
@@ -12,10 +12,8 @@
**/
-
-
-
#include "BaseLibInternals.h"
+
/**
Hack function for passing GCC build.
**/
diff --git a/MdePkg/Library/BaseLib/Cpu.c b/MdePkg/Library/BaseLib/Cpu.c
index 1a6263d4a9..f4ffb8f5fc 100644
--- a/MdePkg/Library/BaseLib/Cpu.c
+++ b/MdePkg/Library/BaseLib/Cpu.c
@@ -1,7 +1,7 @@
/** @file
Base Library CPU Functions for all architectures.
- Copyright (c) 2006, Intel Corporation<BR>
+ Copyright (c) 2006 - 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
@@ -12,7 +12,6 @@
**/
-
#include <BaseLibInternals.h>
@@ -20,9 +19,6 @@
Disables CPU interrupts and returns the interrupt state prior to the disable
operation.
- Disables CPU interrupts and returns the interrupt state prior to the disable
- operation.
-
@retval TRUE CPU interrupts were enabled on entry to this call.
@retval FALSE CPU interrupts were disabled on entry to this call.
@@ -51,7 +47,7 @@ SaveAndDisableInterrupts (
@param InterruptState TRUE if interrupts should enabled. FALSE if
interrupts should be disabled.
- @return InterruptState
+ @return Input interrupt status to be set.
**/
BOOLEAN