diff options
author | Wilco Dijkstra <wdijkstr@arm.com> | 2016-12-14 13:16:13 +0000 |
---|---|---|
committer | Wilco Dijkstra <wdijkstr@arm.com> | 2016-12-14 13:16:13 +0000 |
commit | 3038145ca2355d8fde8c21448961c1be1ed5c287 (patch) | |
tree | fcbe619ce20177170d7b6b3b69e2b5e44f1ba27a /math/w_log1pl.c | |
parent | e370991e26e44e181bc5a8145047b7ca8d08d86c (diff) | |
download | glibc-3038145ca2355d8fde8c21448961c1be1ed5c287.zip glibc-3038145ca2355d8fde8c21448961c1be1ed5c287.tar.gz glibc-3038145ca2355d8fde8c21448961c1be1ed5c287.tar.bz2 |
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 'math/w_log1pl.c')
0 files changed, 0 insertions, 0 deletions