Skip to content
Commit 72b10351 authored by Gabor Kertesz's avatar Gabor Kertesz Committed by Szabolcs Nagy
Browse files

ARMv8.5 MTE: Add MTE compatible version of memchr.

Reading outside the range of the string is only allowed within 16 byte
aligned granules when MTE is enabled.

This implementation is based on string/aarch64/memchr.S

The 64-bit syndrome value is changed to contain only 16 bytes of data.
The 32 byte loop is unrolled to two 16 byte reads.

Testing done:
optimized-routines/string/test/memchr.c
Booted nanodroid with MTE enabled.
bionic string tests with MTE enabled.
parent e89e4598
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment