Add comment for MEMCPY_OK_FOR_FWD_MEMMOVE
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Fri, 4 Jul 2014 19:39:15 +0000 (01:09 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Fri, 4 Jul 2014 19:39:15 +0000 (01:09 +0530)
ChangeLog
sysdeps/generic/memcopy.h

index a9574c9..d5458c7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+       * sysdeps/generic/memcopy.h: Add comment for
+       MEMCPY_OK_FOR_FWD_MEMMOVE.
+
 2014-07-04  Will Newton  <will.newton@linaro.org>
 
        * string/memchr.c: Merge from gnulib.
index 45c5fcb..f7b9423 100644 (file)
@@ -190,6 +190,9 @@ extern void _wordcopy_bwd_dest_aligned (long int, long int, size_t) __THROW;
 /* Threshold value for when to enter the unrolled loops.  */
 #define        OP_T_THRES      16
 
+/* Set to 1 if memcpy is safe to use for forward-copying memmove with
+   overlapping addresses.  This is 0 by default because memcpy implementations
+   are generally not safe for overlapping addresses.  */
 #define MEMCPY_OK_FOR_FWD_MEMMOVE 0
 
 #endif /* memcopy.h */