diff options
author | Will Newton <will.newton@linaro.org> | 2014-06-26 16:00:44 +0100 |
---|---|---|
committer | Will Newton <will.newton@linaro.org> | 2014-07-04 09:23:21 +0100 |
commit | 1570a72bb8359c9a3a64c4e22d9ea47ce6fcff31 (patch) | |
tree | 7dbf52a3e0f06b4681aaf9402d55057e6352ddce /nptl/tst-robust2.c | |
parent | 6b7b14b26f07ddcd1f292ad8de31fa1d9fc13f43 (diff) | |
download | glibc-1570a72bb8359c9a3a64c4e22d9ea47ce6fcff31.tar.gz glibc-1570a72bb8359c9a3a64c4e22d9ea47ce6fcff31.tar.xz glibc-1570a72bb8359c9a3a64c4e22d9ea47ce6fcff31.zip |
string/memchr.c: Merge from gnulib
Merge most of the gnulib implementation of memchr. The changes that remain are: - copyright header - bp-sym.h removed - reg_char removed - allow MEMCHR to be redefined - non-conforming whitespace changes The merged code fixes a number of -Wundef warnings and also introduces an optimized algorithm. I haven't detected any performance difference in the new code which I believe is down to the quite specific circumstances required to hit it. However the new code is approximately half the size of the old code on AArch64 (which uses generic memchr). ChangeLog: 2014-07-04 Will Newton <will.newton@linaro.org> * string/memchr.c: Merge from gnulib. [_LIBC]: Remove conditionals. (__ptr_t): Remove define. (LONG_MAX_32_BITS): Likewise. (LONG_MAX): Likewise. (MEMCHR): Use ANSI prototype and optimize algorithm.
Diffstat (limited to 'nptl/tst-robust2.c')
0 files changed, 0 insertions, 0 deletions