diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-09-18 14:27:39 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-09-18 14:27:39 +0000 |
commit | 2bfb60098f608dc32ff5d22b0fd087c1636b0881 (patch) | |
tree | 8ed7f5c784caa4bc38690e0adef5504a1cf070ea /MdePkg/Library/BaseMemoryLib/ScanMem32Wrapper.c | |
parent | 66df25318672baf41db5b2d640020e61cca97a35 (diff) | |
download | edk2-platforms-2bfb60098f608dc32ff5d22b0fd087c1636b0881.tar.xz |
1. Change 0 == Length style to Length == 0
2. Clean BasePeCoff library instance, only keep one copy PeCoffLoaderEx.c file for IA32, X64 and IPF arch
3. Clean the confused comments
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5927 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseMemoryLib/ScanMem32Wrapper.c')
-rw-r--r-- | MdePkg/Library/BaseMemoryLib/ScanMem32Wrapper.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/MdePkg/Library/BaseMemoryLib/ScanMem32Wrapper.c b/MdePkg/Library/BaseMemoryLib/ScanMem32Wrapper.c index 7f42daf6c8..939de99b3d 100644 --- a/MdePkg/Library/BaseMemoryLib/ScanMem32Wrapper.c +++ b/MdePkg/Library/BaseMemoryLib/ScanMem32Wrapper.c @@ -10,12 +10,14 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
- The following BaseMemoryLib instances share the same version of this file:
+ The following BaseMemoryLib instances contain the same copy of this file:
BaseMemoryLib
BaseMemoryLibMmx
BaseMemoryLibSse2
BaseMemoryLibRepStr
+ BaseMemoryLibOptDxe
+ BaseMemoryLibOptPei
PeiMemoryLib
DxeMemoryLib
@@ -54,14 +56,14 @@ ScanMem32 ( IN UINT32 Value
)
{
- if (0 == Length) {
+ if (Length == 0) {
return NULL;
}
ASSERT (Buffer != NULL);
- ASSERT (0 == ((UINTN)Buffer & (sizeof (Value) - 1)));
+ ASSERT (((UINTN)Buffer & (sizeof (Value) - 1)) == 0);
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
- ASSERT (0 == (Length & (sizeof (Value) - 1)));
+ ASSERT ((Length & (sizeof (Value) - 1)) == 0);
return (VOID*)InternalMemScanMem32 (Buffer, Length / sizeof (Value), Value);
}
|