]> sourceware.org Git - glibc.git/commit
aarch64: MTE compatible strchrnul
authorAndrea Corallo <andrea.corallo@arm.com>
Fri, 5 Jun 2020 15:18:49 +0000 (17:18 +0200)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 9 Jun 2020 08:20:27 +0000 (09:20 +0100)
commitf7de454f20c05a748b5d421ed22d96a5232b6093
treec764c5dbed0625d3de9d2ab0dda35a419766bd4c
parentd1f75e964484504e4f30f4623569d5889a97ac18
aarch64: MTE compatible strchrnul

Introduce an Arm MTE compatible strchrnul implementation.

The existing implementation assumes that any access to the pages in
which the string resides is safe.  This assumption is not true when
MTE is enabled.  This patch updates the algorithm to ensure that
accesses remain within the bounds of an MTE tag (16-byte chunks) and
improves overall performance.

Benchmarked on Cortex-A72, Cortex-A53, Neoverse N1.

Co-authored-by: Wilco Dijkstra <wilco.dijkstra@arm.com>
sysdeps/aarch64/strchrnul.S
This page took 0.03593 seconds and 5 git commands to generate.