diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2014-07-05 01:09:15 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2014-07-05 01:09:15 +0530 |
commit | 96baf6ffc57b811bbc424a1fc72ef77dd56d7a18 (patch) | |
tree | dfe6ad384c1c97e2d766750cf26f333fbaa4fd3d | |
parent | 1570a72bb8359c9a3a64c4e22d9ea47ce6fcff31 (diff) | |
download | glibc-96baf6ffc57b811bbc424a1fc72ef77dd56d7a18.tar.gz glibc-96baf6ffc57b811bbc424a1fc72ef77dd56d7a18.tar.xz glibc-96baf6ffc57b811bbc424a1fc72ef77dd56d7a18.zip |
Add comment for MEMCPY_OK_FOR_FWD_MEMMOVE
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/generic/memcopy.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index a9574c9508..d5458c7030 100644 --- 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. 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 */ |