mirror of https://github.com/acidanthera/audk.git
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:
parent
4bd97476a9
commit
808bfde224
|
@ -28,6 +28,17 @@ Abstract:
|
||||||
#include "Tiano.h"
|
#include "Tiano.h"
|
||||||
|
|
||||||
VOID *
|
VOID *
|
||||||
|
memcpy (
|
||||||
|
OUT VOID *Dest,
|
||||||
|
IN const VOID *Src,
|
||||||
|
IN UINTN Count
|
||||||
|
)
|
||||||
|
;
|
||||||
|
|
||||||
|
#ifdef _MSC_EXTENSIONS
|
||||||
|
#pragma intrinsic(memcpy)
|
||||||
|
#else
|
||||||
|
VOID *
|
||||||
memcpy (
|
memcpy (
|
||||||
OUT VOID *Dest,
|
OUT VOID *Dest,
|
||||||
IN const VOID *Src,
|
IN const VOID *Src,
|
||||||
|
@ -43,4 +54,5 @@ memcpy (
|
||||||
|
|
||||||
return Dest;
|
return Dest;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,17 @@ Abstract:
|
||||||
--*/
|
--*/
|
||||||
|
|
||||||
#include "Tiano.h"
|
#include "Tiano.h"
|
||||||
|
VOID *
|
||||||
|
memset (
|
||||||
|
OUT VOID *Dest,
|
||||||
|
IN UINTN Char,
|
||||||
|
IN UINTN Count
|
||||||
|
)
|
||||||
|
;
|
||||||
|
|
||||||
|
#ifdef _MSC_EXTENSIONS
|
||||||
|
#pragma intrinsic(memset)
|
||||||
|
#else
|
||||||
VOID *
|
VOID *
|
||||||
memset (
|
memset (
|
||||||
OUT VOID *Dest,
|
OUT VOID *Dest,
|
||||||
|
@ -42,4 +52,5 @@ memset (
|
||||||
|
|
||||||
return Dest;
|
return Dest;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue