OSDN Git Service

- trim any trailing whitespace
[uclinux-h8/uClibc.git] / libc / string / powerpc / memcpy.c
index e731f35..dd39e6f 100644 (file)
@@ -21,7 +21,8 @@
 
 #include <string.h>
 
-void attribute_hidden *__memcpy(void *to, const void *from, size_t n)
+/* Experimentally off - libc_hidden_proto(memcpy) */
+void *memcpy(void *to, const void *from, size_t n)
 /* PPC can do pre increment and load/store, but not post increment and load/store.
    Therefore use *++ptr instead of *ptr++. */
 {
@@ -61,7 +62,7 @@ void attribute_hidden *__memcpy(void *to, const void *from, size_t n)
        do {
                *++tmp_to = *++tmp_from;
        } while (--n);
-       
+
        return to;
  align:
        rem = 4 - rem;
@@ -76,5 +77,4 @@ void attribute_hidden *__memcpy(void *to, const void *from, size_t n)
                goto copy_chunks;
        goto lessthan8;
 }
-
-strong_alias(__memcpy, memcpy)
+libc_hidden_def(memcpy)