Split wrapper functions into separate source files to reduce image code size
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@168 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
|
||||
**/
|
||||
|
||||
#include "MemLibWrappers.h"
|
||||
#include "MemLibInternals.h"
|
||||
|
||||
/**
|
||||
Copy Length bytes from Source to Destination.
|
||||
@@ -51,8 +51,14 @@ CopyMem (
|
||||
IN UINTN Length
|
||||
)
|
||||
{
|
||||
ASSERT (Length <= MAX_ADDRESS - (UINTN)Destination + 1);
|
||||
ASSERT (Length <= MAX_ADDRESS - (UINTN)Source + 1);
|
||||
ASSERT (
|
||||
Destination == NULL ||
|
||||
Length <= MAX_ADDRESS - (UINTN)Destination + 1
|
||||
);
|
||||
ASSERT (
|
||||
Source == NULL ||
|
||||
Length <= MAX_ADDRESS - (UINTN)Source + 1
|
||||
);
|
||||
if (Destination == Source || Length == 0) {
|
||||
return Destination;
|
||||
}
|
||||
|
Reference in New Issue
Block a user