Code scrub:

MdePkg/Library/BaseCacheMaintenanceLib
MdePkg/Library/BaseDebugLibNull
MdePkg/Library/BaseIoLibIntrinsic
MdePkg/Library/BaseLib
MdePkg/Library/BaseMemoryLib
MdePkg/Library/BaseMemoryLibMmx
MdePkg/Library/BaseMemoryLibOptDxe
MdePkg/Library/BaseMemoryLibOptPei
MdePkg/Library/BaseMemoryLibRepStr
MdePkg/Library/BaseMemoryLibSse2
MdePkg/Library/BasePeCoffGetEntryPointLib


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5426 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
yshang1
2008-07-08 09:38:43 +00:00
parent d74eeda8a7
commit 38bbd3d91c
104 changed files with 392 additions and 286 deletions

View File

@@ -58,7 +58,7 @@ CompareMem (
IN UINTN Length
)
{
if (Length == 0) {
if (0 == Length) {
return 0;
}
ASSERT (DestinationBuffer != NULL);

View File

@@ -52,7 +52,7 @@ CopyMem (
IN UINTN Length
)
{
if (Length == 0) {
if (0 == Length) {
return DestinationBuffer;
}
ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer));

View File

@@ -56,7 +56,7 @@ ScanMem16 (
IN UINT16 Value
)
{
if (Length == 0) {
if (0 == Length) {
return NULL;
}

View File

@@ -56,7 +56,7 @@ ScanMem32 (
IN UINT32 Value
)
{
if (Length == 0) {
if (0 == Length) {
return NULL;
}

View File

@@ -56,7 +56,7 @@ ScanMem64 (
IN UINT64 Value
)
{
if (Length == 0) {
if (0 == Length) {
return NULL;
}

View File

@@ -54,7 +54,7 @@ ScanMem8 (
IN UINT8 Value
)
{
if (Length == 0) {
if (0 == Length) {
return NULL;
}
ASSERT (Buffer != NULL);

View File

@@ -55,7 +55,7 @@ SetMem16 (
IN UINT16 Value
)
{
if (Length == 0) {
if (0 == Length) {
return Buffer;
}

View File

@@ -55,7 +55,7 @@ SetMem32 (
IN UINT32 Value
)
{
if (Length == 0) {
if (0 == Length) {
return Buffer;
}

View File

@@ -55,7 +55,7 @@ SetMem64 (
IN UINT64 Value
)
{
if (Length == 0) {
if (0 == Length) {
return Buffer;
}

View File

@@ -49,7 +49,7 @@ SetMem (
IN UINT8 Value
)
{
if (Length == 0) {
if (0 == Length) {
return Buffer;
}

View File

@@ -48,7 +48,7 @@ ZeroMem (
IN UINTN Length
)
{
ASSERT (!(Buffer == NULL && Length > 0));
ASSERT (!(NULL == Buffer && Length > 0));
ASSERT (Length <= (MAX_ADDRESS - (UINTN)Buffer + 1));
return InternalMemZeroMem (Buffer, Length);
}