Skip to content
Commit 9d4fa7a1 authored by Adhemerval Zanella's avatar Adhemerval Zanella
Browse files

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: default avatarRichard Henderson <richard.henderson@linaro.org>
Reviewed-by: default avatarNoah Goldstein <goldstein.w.n@gmail.com>
parent 0f425431
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment