diff options
author | Alex Butler <Alex.Butler@arm.com> | 2020-06-16 12:44:24 +0000 |
---|---|---|
committer | Wilco Dijkstra <wilco.dijkstra@arm.com> | 2024-11-04 16:31:20 +0000 |
commit | 2417ddb64590b7197d6df15b9df67866561713e0 (patch) | |
tree | 7a6e27c2088a57de5baf7faced36cafaccd7d777 /sysdeps/libm-ieee754/s_nexttoward.c | |
parent | 3c15600e794570a02909987303e975d11bdd301b (diff) | |
download | glibc-2417ddb64590b7197d6df15b9df67866561713e0.tar.gz glibc-2417ddb64590b7197d6df15b9df67866561713e0.tar.xz glibc-2417ddb64590b7197d6df15b9df67866561713e0.zip |
aarch64: MTE compatible strncmp release/2.29/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 'sysdeps/libm-ieee754/s_nexttoward.c')
0 files changed, 0 insertions, 0 deletions