about summary refs log tree commit diff
path: root/po
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2016-12-14 13:16:13 +0000
committerWilco Dijkstra <wdijkstr@arm.com>2016-12-14 13:16:13 +0000
commit3038145ca2355d8fde8c21448961c1be1ed5c287 (patch)
treefcbe619ce20177170d7b6b3b69e2b5e44f1ba27a /po
parente370991e26e44e181bc5a8145047b7ca8d08d86c (diff)
downloadglibc-3038145ca2355d8fde8c21448961c1be1ed5c287.tar.gz
glibc-3038145ca2355d8fde8c21448961c1be1ed5c287.tar.xz
glibc-3038145ca2355d8fde8c21448961c1be1ed5c287.zip
Improve generic rawmemchr for targets that don't have an
assembler version by tailcalling memchr with the maximum size.
If a target has an optimized memchr this is significantly faster,
if not, then this makes little difference.
Also optimize the special case of zero to use strlen as this is
typically faster than memchr.

	* string/rawmemchr.c (RAWMEMCHR): Use faster memchr/strlen.
Diffstat (limited to 'po')
0 files changed, 0 insertions, 0 deletions