alpha: Add string-fza, string-fzb.h, string-fzi.h, and string-shift.h
commit120ad6ed1ae72ed8bf46638c5a7bf6c3b239d4dc
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 10 Jan 2023 21:01:03 +0000 (10 18:01 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 6 Feb 2023 19:19:35 +0000 (6 16:19 -0300)
tree2aa344fe5bbbc8e3937e0ac1fd32bd48ce2205a1
parentc62b1c29c2100f6d0bb8fe6d5e35811bd8ab49d9
alpha: Add string-fza, string-fzb.h, string-fzi.h, and string-shift.h

While alpha has the more important string functions in assembly,
there are still a few for find the generic routines are used.

Use the CMPBGE insn, via the builtin, for testing of zeros.  Use a
simplified expansion of __builtin_ctz when the insn isn't available.

Checked on alpha-linux-gnu.

Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/alpha/string-fza.h [new file with mode: 0644]
sysdeps/alpha/string-fzb.h [new file with mode: 0644]
sysdeps/alpha/string-fzi.h [new file with mode: 0644]
sysdeps/alpha/string-shift.h [new file with mode: 0644]