about summary refs log tree commit diff
path: root/manual/examples/argp-ex1.c
diff options
context:
space:
mode:
authorAlex Butler <Alex.Butler@arm.com>2020-06-16 12:44:24 +0000
committerWilco Dijkstra <wilco.dijkstra@arm.com>2024-11-04 17:15:10 +0000
commit6d69c4aad444b655b0c69251b4b8e595031cb1e8 (patch)
treef29737e421f58a4529aa3ff75edd3a26da162edd /manual/examples/argp-ex1.c
parent73886db6218e613bd6d4edf529f11e008a6c2fa6 (diff)
downloadglibc-6d69c4aad444b655b0c69251b4b8e595031cb1e8.tar.gz
glibc-6d69c4aad444b655b0c69251b4b8e595031cb1e8.tar.xz
glibc-6d69c4aad444b655b0c69251b4b8e595031cb1e8.zip
aarch64: MTE compatible strncmp release/2.27/master
Add support for MTE to strncmp. Regression tested with xcheck and benchmarked
with glibc's benchtests on the Cortex-A53, Cortex-A72, and Neoverse N1.

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.

Co-authored-by: Branislav Rankov <branislav.rankov@arm.com>
Co-authored-by: Wilco Dijkstra <wilco.dijkstra@arm.com>
(cherry picked from commit 03e1378f94173fc192a81e421457198f7b8a34a0)
Diffstat (limited to 'manual/examples/argp-ex1.c')
0 files changed, 0 insertions, 0 deletions