[PATCH v2] aarch64: MTE compatible strchr
Szabolcs Nagy
szabolcs.nagy@arm.com
Tue Jun 9 07:06:31 GMT 2020
The 06/05/2020 17:20, Andrea Corallo wrote:
> Introduce an Arm MTE compatible strchr 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>
this is ok to commit.
More information about the Libc-alpha
mailing list