diff options
author | Alex Butler <Alex.Butler@arm.com> | 2020-06-16 12:44:24 +0000 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2020-06-23 17:55:39 +0100 |
commit | 03e1378f94173fc192a81e421457198f7b8a34a0 (patch) | |
tree | 1281337c947bc23a3e778dd6bc8086857892d432 /sysdeps/hppa/gccframe.h | |
parent | adac54ffc5ded48cba7deb18e46df984b213b0ac (diff) | |
download | glibc-03e1378f94173fc192a81e421457198f7b8a34a0.tar glibc-03e1378f94173fc192a81e421457198f7b8a34a0.tar.gz glibc-03e1378f94173fc192a81e421457198f7b8a34a0.tar.bz2 glibc-03e1378f94173fc192a81e421457198f7b8a34a0.zip |
aarch64: MTE compatible strncmp
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>
Diffstat (limited to 'sysdeps/hppa/gccframe.h')
0 files changed, 0 insertions, 0 deletions