diff options
Diffstat (limited to 'EdkCompatibilityPkg')
-rw-r--r-- | EdkCompatibilityPkg/Foundation/Library/CompilerStub/memcpy.c | 12 | ||||
-rw-r--r-- | EdkCompatibilityPkg/Foundation/Library/CompilerStub/memset.c | 11 |
2 files changed, 23 insertions, 0 deletions
diff --git a/EdkCompatibilityPkg/Foundation/Library/CompilerStub/memcpy.c b/EdkCompatibilityPkg/Foundation/Library/CompilerStub/memcpy.c index 300724a132..69c45e1583 100644 --- a/EdkCompatibilityPkg/Foundation/Library/CompilerStub/memcpy.c +++ b/EdkCompatibilityPkg/Foundation/Library/CompilerStub/memcpy.c @@ -33,6 +33,17 @@ memcpy ( IN const VOID *Src,
IN UINTN Count
)
+;
+
+#ifdef _MSC_EXTENSIONS
+#pragma intrinsic(memcpy)
+#else
+ VOID *
+memcpy (
+ OUT VOID *Dest,
+ IN const VOID *Src,
+ IN UINTN Count
+ )
{
volatile UINT8 *Ptr;
const UINT8 *Source;
@@ -43,4 +54,5 @@ memcpy ( return Dest;
}
+#endif
diff --git a/EdkCompatibilityPkg/Foundation/Library/CompilerStub/memset.c b/EdkCompatibilityPkg/Foundation/Library/CompilerStub/memset.c index 0f0f40db97..a51ea10a98 100644 --- a/EdkCompatibilityPkg/Foundation/Library/CompilerStub/memset.c +++ b/EdkCompatibilityPkg/Foundation/Library/CompilerStub/memset.c @@ -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
|