aboutsummaryrefslogtreecommitdiff
path: root/string/strrchr.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-01-10 18:01:00 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-02-06 16:19:35 -0300
commit9d4fa7a1ca9154e814b7ede8d48186832bdbebe6 (patch)
tree6a8718e7273d67250e1ce97d20c93ef97ae1c4cb /string/strrchr.c
parent0f4254311ebf15b8f3f6f66182e8dd5151a58a88 (diff)
downloadglibc-9d4fa7a1ca9154e814b7ede8d48186832bdbebe6.zip
glibc-9d4fa7a1ca9154e814b7ede8d48186832bdbebe6.tar.gz
glibc-9d4fa7a1ca9154e814b7ede8d48186832bdbebe6.tar.bz2
string: Improve generic memrchr
New algorithm read the lastaligned address and mask off the unwanted bytes. The loop now read word-aligned address and check using the has_eq macro. Checked on x86_64-linux-gnu, i686-linux-gnu, powerpc-linux-gnu, and powerpc64-linux-gnu by removing the arch-specific assembly implementation and disabling multi-arch (it covers both LE and BE for 64 and 32 bits). Co-authored-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
Diffstat (limited to 'string/strrchr.c')
0 files changed, 0 insertions, 0 deletions