summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/PeiMemoryLib
diff options
context:
space:
mode:
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-21 06:52:21 +0000
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-21 06:52:21 +0000
commitd531bfee01a957038d7ac1a16748558a62165fb2 (patch)
tree173c73fa2b6fc324192bb5021e0598113f6a2135 /MdePkg/Library/PeiMemoryLib
parent6c7a807a54b14827a6510baa5edfdbe8b5f1f085 (diff)
downloadedk2-d531bfee01a957038d7ac1a16748558a62165fb2.tar.gz
edk2-d531bfee01a957038d7ac1a16748558a62165fb2.tar.bz2
edk2-d531bfee01a957038d7ac1a16748558a62165fb2.zip
CodeReview for MdePkg/BaseMemoryXXX libraries. Refine file description, function comments and move some redundant logic.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6167 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/PeiMemoryLib')
-rw-r--r--MdePkg/Library/PeiMemoryLib/MemLibGeneric.c4
-rw-r--r--MdePkg/Library/PeiMemoryLib/MemLibInternals.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/MdePkg/Library/PeiMemoryLib/MemLibGeneric.c b/MdePkg/Library/PeiMemoryLib/MemLibGeneric.c
index a1a7c3695a..3ae0387883 100644
--- a/MdePkg/Library/PeiMemoryLib/MemLibGeneric.c
+++ b/MdePkg/Library/PeiMemoryLib/MemLibGeneric.c
@@ -119,7 +119,9 @@ InternalMemZeroMem (
@param Length Length of DestinationBuffer and SourceBuffer memory
regions to compare. Must be non-zero.
- @retval 0 if MemOne == MemTwo
+ @return 0 All Length bytes of the two buffers are identical.
+ @retval Non-zero The first mismatched byte in SourceBuffer subtracted from the first
+ mismatched byte in DestinationBuffer.
**/
INTN
diff --git a/MdePkg/Library/PeiMemoryLib/MemLibInternals.h b/MdePkg/Library/PeiMemoryLib/MemLibInternals.h
index 7d2c903b54..468b464454 100644
--- a/MdePkg/Library/PeiMemoryLib/MemLibInternals.h
+++ b/MdePkg/Library/PeiMemoryLib/MemLibInternals.h
@@ -148,7 +148,9 @@ InternalMemZeroMem (
@param Length Length of DestinationBuffer and SourceBuffer memory
regions to compare. Must be non-zero.
- @retval 0 if MemOne == MemTwo
+ @return 0 All Length bytes of the two buffers are identical.
+ @retval Non-zero The first mismatched byte in SourceBuffer subtracted from the first
+ mismatched byte in DestinationBuffer.
**/
INTN