summaryrefslogtreecommitdiffstats
path: root/newlib/libc/machine/arm/memcpy.S
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2014-09-05 17:26:42 +0000
committerJeff Johnston <jjohnstn@redhat.com>2014-09-05 17:26:42 +0000
commitc8a01afd974007a09f64a1830056ed11d5ebeec8 (patch)
treef8af7d69f1de51ec860b4a0d14682c7c107f2bb9 /newlib/libc/machine/arm/memcpy.S
parentbea3ef947a51f735d0cebb3099a5a34f44c1dd30 (diff)
downloadcygnal-c8a01afd974007a09f64a1830056ed11d5ebeec8.tar.gz
cygnal-c8a01afd974007a09f64a1830056ed11d5ebeec8.tar.bz2
cygnal-c8a01afd974007a09f64a1830056ed11d5ebeec8.zip
2014-09-05 Hale Wang <hale.wang@arm.com>
* libc/machine/arm/memchr.S: Clean up the wrapper. * libc/machine/arm/memcpy.S: Likewise. * libc/machine/arm/memchr-stub.c: Delete this redundant file. * libc/machine/arm/memcpy-stub.c: Likewise. * libc/machine/arm/strcmp.S: Add speed-preferred wrapper. * libc/machine/arm/strlen.S: Likewise. * libc/machine/arm/Makefile.am: Add dependencies. * libc/machine/arm/Makefile.in: Regenerated. * libc/machine/arm/configure.in: Add dependencies. * libc/machine/arm/configure: Regenerated.
Diffstat (limited to 'newlib/libc/machine/arm/memcpy.S')
-rw-r--r--newlib/libc/machine/arm/memcpy.S16
1 files changed, 14 insertions, 2 deletions
diff --git a/newlib/libc/machine/arm/memcpy.S b/newlib/libc/machine/arm/memcpy.S
index 734a19776..399752424 100644
--- a/newlib/libc/machine/arm/memcpy.S
+++ b/newlib/libc/machine/arm/memcpy.S
@@ -27,7 +27,19 @@
*/
#if defined (__OPTIMIZE_SIZE__) || defined (PREFER_SIZE_OVER_SPEED)
- /* Do nothing here. See memcpy-stub.c in the same directory. */
+ /* Leave this field blank. So the memcpy() is not defined, and this will
+ automatically pull in the default C definition of memcpy() from
+ ../../string/memcpy.c. No need to include this file explicitely.
+ The lib_a-memcpy.o will not be generated, so it won't replace the default
+ lib_a-memcpy.o which is generated by ../../string/memcpy.c.
+ See the commands in configure.in and Makefile.am for more details.
+
+ However, if we need to rewrite this function to be more efficient, we
+ can add the corresponding assembly code into this field and change the
+ commands in configure.in and Makefile.am to allow the corresponding
+ lib_a-memcpy.o to be generated.
+ */
+
#elif defined (__ARM_ARCH_7A__) && defined (__ARM_FEATURE_UNALIGNED)
#include "memcpy-armv7a.S"
@@ -35,5 +47,5 @@
#include "memcpy-armv7m.S"
#else
- /* Do nothing here. See memcpy-stub.c in the same directory. */
+ /* Leave this filed blank. See the commands above. */
#endif