about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2014-07-05 01:09:15 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2014-07-05 01:09:15 +0530
commit96baf6ffc57b811bbc424a1fc72ef77dd56d7a18 (patch)
treedfe6ad384c1c97e2d766750cf26f333fbaa4fd3d /sysdeps
parent1570a72bb8359c9a3a64c4e22d9ea47ce6fcff31 (diff)
downloadglibc-96baf6ffc57b811bbc424a1fc72ef77dd56d7a18.tar.gz
glibc-96baf6ffc57b811bbc424a1fc72ef77dd56d7a18.tar.xz
glibc-96baf6ffc57b811bbc424a1fc72ef77dd56d7a18.zip
Add comment for MEMCPY_OK_FOR_FWD_MEMMOVE
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/memcopy.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/generic/memcopy.h b/sysdeps/generic/memcopy.h
index 45c5fcb479..f7b9423f0e 100644
--- a/sysdeps/generic/memcopy.h
+++ b/sysdeps/generic/memcopy.h
@@ -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 */