diff options
Diffstat (limited to 'ArmPkg')
-rw-r--r-- | ArmPkg/Library/CompilerIntrinsicsLib/memcpy.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ArmPkg/Library/CompilerIntrinsicsLib/memcpy.c b/ArmPkg/Library/CompilerIntrinsicsLib/memcpy.c index a944e00..63af04f 100644 --- a/ArmPkg/Library/CompilerIntrinsicsLib/memcpy.c +++ b/ArmPkg/Library/CompilerIntrinsicsLib/memcpy.c @@ -15,21 +15,21 @@ typedef __SIZE_TYPE__ size_t;
-static __attribute__((__used__))
-void *__memcpy(void *dest, const void *src, size_t n)
+static void __memcpy(void *dest, const void *src, size_t n)
{
unsigned char *d = dest;
unsigned char const *s = src;
while (n--)
*d++ = *s++;
+}
+void *memcpy(void *dest, const void *src, size_t n)
+{
+ __memcpy(dest, src, n);
return dest;
}
-__attribute__((__alias__("__memcpy")))
-void *memcpy(void *dest, const void *src, size_t n);
-
#ifdef __arm__
__attribute__((__alias__("__memcpy")))
|