aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/tst-printf-binary.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-01-10 18:00:57 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-02-06 16:19:35 -0300
commit685e844a97ba0506dee575ba530b170edaa59fed (patch)
tree99800df5d60b81d2de6e8d038a0ea8bc8fa9c80f /stdio-common/tst-printf-binary.c
parent350d8d13661a863e6b189f02d876fa265fe71302 (diff)
downloadglibc-685e844a97ba0506dee575ba530b170edaa59fed.zip
glibc-685e844a97ba0506dee575ba530b170edaa59fed.tar.gz
glibc-685e844a97ba0506dee575ba530b170edaa59fed.tar.bz2
string: Improve generic strchrnul
New algorithm read the first aligned address and mask off the unwanted bytes (this strategy is similar to arch-specific implementations used on powerpc, sparc, and sh). The loop now read word-aligned address and check using the has_zero_eq function. Checked on x86_64-linux-gnu, i686-linux-gnu, powerpc64-linux-gnu, and powerpc-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 'stdio-common/tst-printf-binary.c')
0 files changed, 0 insertions, 0 deletions