diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2017-02-16 16:21:03 -0200 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2018-10-02 15:32:35 +0000 |
commit | df07959c3721e083e10aaa4c3c1b9a483f9955fa (patch) | |
tree | 73cfc5fdb227c6aafd6ea51ed97cf9a4c77c7273 /iconvdata/bug-iconv5.c | |
parent | bdd041c15306e91a9cc4d26975e73a7a7d84742b (diff) | |
download | glibc-df07959c3721e083e10aaa4c3c1b9a483f9955fa.tar.gz |
string: Improve generic strnlen
With an optimized memchr, new strnlen implementation basically calls
memchr and adjust the result pointer value.
It also cleanups the multiple inclusion by leaving the ifunc
implementation to undef the weak_alias and libc_hidden_def.
Richard Henderson <rth@twiddle.net>
Adhemerval Zanella <adhemerval.zanella@linaro.org>
[BZ #5806]
* string/strnlen.c: Rewrite in terms of memchr.
* sysdeps/i386/i686/multiarch/strnlen-c.c: Redefine weak_alias
and libc_hidden_def.
* sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c:
Likewise.
* sysdeps/s390/multiarch/strnlen-c.c: Likewise.
Diffstat (limited to 'iconvdata/bug-iconv5.c')
0 files changed, 0 insertions, 0 deletions