diff options
author | Andrea Corallo <andrea.corallo@arm.com> | 2020-06-05 17:20:50 +0200 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2020-06-09 09:20:27 +0100 |
commit | 49beaaec1bd333c543f7150576a0f9f6a28a4879 (patch) | |
tree | 3a999c2a32fdb4ac123ac7aa1bc271ce6be6c8c2 /stdio-common/scanf16a.c | |
parent | f7de454f20c05a748b5d421ed22d96a5232b6093 (diff) | |
download | glibc-49beaaec1bd333c543f7150576a0f9f6a28a4879.tar.gz glibc-49beaaec1bd333c543f7150576a0f9f6a28a4879.tar.xz glibc-49beaaec1bd333c543f7150576a0f9f6a28a4879.zip |
aarch64: MTE compatible strchr
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>
Diffstat (limited to 'stdio-common/scanf16a.c')
0 files changed, 0 insertions, 0 deletions