diff options
author | Alex Butler <Alex.Butler@arm.com> | 2020-06-09 16:06:03 +0000 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2020-06-23 17:55:39 +0100 |
commit | 7ff899969fbff7f254c0ffabb4480afe1ccbfa22 (patch) | |
tree | 09a4816e0fcfdd3e9bde68f1f3aa50480efd48ff /string/test-stpcpy.c | |
parent | bb2c12aecbd26a8d29f63b51b80b7c84e65d1818 (diff) | |
download | glibc-7ff899969fbff7f254c0ffabb4480afe1ccbfa22.tar.gz glibc-7ff899969fbff7f254c0ffabb4480afe1ccbfa22.tar.xz glibc-7ff899969fbff7f254c0ffabb4480afe1ccbfa22.zip |
aarch64: MTE compatible memchr
Add support for MTE to memchr. 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: Gabor Kertesz <gabor.kertesz@arm.com>
Diffstat (limited to 'string/test-stpcpy.c')
0 files changed, 0 insertions, 0 deletions