This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: patch v2 add restrict to string.h methods


On 2013-07-19 15:30, Joel Sherrill wrote:
Index: libc/machine/xscale/memcpy.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/machine/xscale/memcpy.c,v
retrieving revision 1.2
diff -u -r1.2 memcpy.c
--- libc/machine/xscale/memcpy.c	20 Apr 2002 00:29:51 -0000	1.2
+++ libc/machine/xscale/memcpy.c	19 Jul 2013 13:16:15 -0000
@@ -8,7 +8,7 @@
  #include "xscale.h"

  void *
-memcpy (void *dst0, const void *src0, size_t len)
+memcpy (void *_restrict dst0, const void *_restrict src0, size_t len)

This should be __restrict.

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]