Loading...
arm/string/bcopy.s Libc-583 Libc-594.1.4
--- Libc/Libc-583/arm/string/bcopy.s
+++ Libc/Libc-594.1.4/arm/string/bcopy.s
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2006, 2009 Apple Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
@@ -21,6 +21,19 @@
  * @APPLE_LICENSE_HEADER_END@
  */
 
+#if defined __thumb2__ && defined __ARM_NEON__
+    
+// Use our tuned NEON implementation when it is available.  Otherwise fall back
+// on more generic ARM code.
+
+#include "NEON/bcopy.s"
+    
+#else // defined __thumb2__ && defined __ARM_NEON__
+
+/*****************************************************************************
+ * ARMv5 and ARMv6 implementation                                            *
+ *****************************************************************************/
+ 
 #include <arm/arch.h>
 
 .text
@@ -398,4 +411,5 @@
 Lexit:
 	ldmfd	sp!, {r0, r4, r5, r7, pc}
 
-
+#endif // defined __thumb2__ && defined __ARM_NEON__
+