Update memcpy.c and memset.c to support both /Ox and /Os of MSFT IPF toolchain. Without this change, MSFT /Ox will report "can't define intrinsic" error.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4630 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qwang12 2008-01-24 09:35:36 +00:00
parent 4bd97476a9
commit 808bfde224
2 changed files with 23 additions and 0 deletions

View File

@ -28,6 +28,17 @@ Abstract:
#include "Tiano.h"
VOID *
memcpy (
OUT VOID *Dest,
IN const VOID *Src,
IN UINTN Count
)
;
#ifdef _MSC_EXTENSIONS
#pragma intrinsic(memcpy)
#else
VOID *
memcpy (
OUT VOID *Dest,
IN const VOID *Src,
@ -43,4 +54,5 @@ memcpy (
return Dest;
}
#endif

View File

@ -26,7 +26,17 @@ Abstract:
--*/
#include "Tiano.h"
VOID *
memset (
OUT VOID *Dest,
IN UINTN Char,
IN UINTN Count
)
;
#ifdef _MSC_EXTENSIONS
#pragma intrinsic(memset)
#else
VOID *
memset (
OUT VOID *Dest,
@ -42,4 +52,5 @@ memset (
return Dest;
}
#endif