Clean up Runtime for Doxygen comments requirement.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5460 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qwang12
2008-07-14 05:43:37 +00:00
parent 6ca46b63d2
commit 9fc787529c
3 changed files with 162 additions and 225 deletions

View File

@@ -31,7 +31,7 @@ UINT32 mCrcTable[256];
/**
Calculate CRC32 for target data.
@param Len The target data.
@param Data The target data.
@param DataSize The target data size.
@param CrcOut The CRC32 for target data.
@@ -68,13 +68,13 @@ RuntimeDriverCalculateCrc32 (
/**
Reverse bits for 32bit data.
This is a internal function.
@param Value The data to be reversed.
@retrun Data reversed.
@return Data reversed.
**/
STATIC
UINT32
ReverseBits (
UINT32 Value
@@ -85,7 +85,7 @@ ReverseBits (
NewValue = 0;
for (Index = 0; Index < 32; Index++) {
if (Value & (1 << Index)) {
if ((Value & (1 << Index)) != 0) {
NewValue = NewValue | (1 << (31 - Index));
}
}
@@ -95,11 +95,6 @@ ReverseBits (
/**
Initialize CRC32 table.
@param None
@retrun None
**/
VOID
RuntimeDriverInitializeCrc32Table (
@@ -113,7 +108,7 @@ RuntimeDriverInitializeCrc32Table (
for (TableEntry = 0; TableEntry < 256; TableEntry++) {
Value = ReverseBits ((UINT32) TableEntry);
for (Index = 0; Index < 8; Index++) {
if (Value & 0x80000000) {
if ((Value & 0x80000000) != 0) {
Value = (Value << 1) ^ 0x04c11db7;
} else {
Value = Value << 1;