]> git.ipfire.org Git - thirdparty/glibc.git/commit
aarch64: Optimized strlen for strlen_asimd
authorXuelei Zhang <zhangxuelei4@huawei.com>
Thu, 19 Dec 2019 13:41:40 +0000 (13:41 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 19 Dec 2019 19:31:04 +0000 (16:31 -0300)
commitc2150769d015dca1805334af7743829f1e4c0b6a
tree9a57061392d7a63e1696ab208005677b3968bfce
parent0db8e7b36665fa90c53161742dedab21d786924c
aarch64: Optimized strlen for strlen_asimd

Optimize the strlen implementation by using vector operations and
loop unrolling in main loop.Compared to __strlen_generic,it reduces
latency of cases in bench-strlen by 7%~18% when the length of src
is greater than 128 bytes, with gains throughout the benchmark.

Checked on aarch64-linux-gnu.

Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
sysdeps/aarch64/multiarch/strlen.c
sysdeps/aarch64/multiarch/strlen_asimd.S