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
This commit is contained in:
vanjeff
2008-09-25 04:56:53 +00:00
parent 30ab8a1296
commit e389c39b7b
6 changed files with 602 additions and 620 deletions

View File

@@ -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

View File

@@ -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.
**/

View File

@@ -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