aboutsummaryrefslogtreecommitdiff
path: root/posix/bug-regex15.c
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2024-02-04 08:27:50 +0800
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-02-05 15:19:41 -0300
commit2e80f139376450acdb7d879d799439578a41810e (patch)
tree9888c8627c488da707f338232ab4c480c618eba9 /posix/bug-regex15.c
parent814ed22eab4f3f43bb02229edab5d50004310258 (diff)
downloadglibc-2e80f139376450acdb7d879d799439578a41810e.zip
glibc-2e80f139376450acdb7d879d799439578a41810e.tar.gz
glibc-2e80f139376450acdb7d879d799439578a41810e.tar.bz2
LoongArch: Use builtins for ffs and ffsll
On LoongArch GCC compiles __builtin_ffs{,ll} to basically `(x ? __builtin_ctz (x) : -1) + 1`. Since a hardware ctz instruction is available, this is much better than the table-driven generic implementation. Tested on loongarch64. Signed-off-by: Xi Ruoyao <xry111@xry111.site> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'posix/bug-regex15.c')
0 files changed, 0 insertions, 0 deletions