]> git.ipfire.org Git - thirdparty/glibc.git/commit
hppa: Add string-fza.h, string-fzc.h, and string-fzi.h
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 10 Jan 2023 21:01:02 +0000 (18:01 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 6 Feb 2023 19:19:35 +0000 (16:19 -0300)
commitc62b1c29c2100f6d0bb8fe6d5e35811bd8ab49d9
tree0512bf2d4e936afdad81efd54c85a43260ce1073
parentbe836d9153eb6c1203c6659befb38427514eb349
hppa: Add string-fza.h, string-fzc.h, and string-fzi.h

Use UXOR,SBZ to test for a zero byte within a word.  While we can
get semi-decent code out of asm-goto, we would do slightly better
with a compiler builtin.

For index_zero et al, sequential testing of bytes is less expensive than
any tricks that involve a count-leading-zeros insn that we don't have.

Checked on hppa-linux-gnu.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/hppa/string-fzb.h [new file with mode: 0644]
sysdeps/hppa/string-fzc.h [new file with mode: 0644]
sysdeps/hppa/string-fzi.h [new file with mode: 0644]