aarch64: Optimized implementation of memrchr
authorXuelei Zhang <zhangxuelei4@huawei.com>
Thu, 19 Dec 2019 14:53:29 +0000 (14:53 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 19 Dec 2019 19:31:04 +0000 (16:31 -0300)
commita7611806d5f4163656a2f5d21d349b5e7c4170e0
tree70e6f49512436ef6d8c03bb79f08f9b2c3140dc4
parent2911cb68ed3d6c515ad1979237e74e1fefab3674
aarch64: Optimized implementation of memrchr

Considering the excellent performance of memchr.S on glibc 2.30, the
same algorithm is used to find chrin. Compared to memrchr.c, this
method with memrchr.S achieves an average performance improvement
of 58% based on benchtest and its extension cases.

Checked on aarch64-linux-gnu.

Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
sysdeps/aarch64/memrchr.S [new file with mode: 0644]