1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-10 01:12:02 +02:00

factor: switch to stdc_leading_zeros etc

* bootstrap.conf (gnulib_modules): Add stdc_trailing_zeros.
* cfg.mk (_gl_TS_unmarked_extern_vars): Remove factor_clz_tab,
as it’s no longer present.
* src/factor.c: Include stdbit.h.
(__clz_tab, factor_clz_tab): Remove.
(ASSERT, UHWtype, __GMP_DECLSPEC): Use simpler way to pacify
-Wunused-macros.
(count_leading_zeros, count_trailing_zeros):
Remove.  All uses replaced by stdc_leading_zeros, stdc_trailing_zeros.
(factor_using_division, prime2_p): Add a couple of ‘assume’s
so that GCC knows the stdc_* calls are nonzero and can
optimize accordingly.
This commit is contained in:
Paul Eggert
2024-09-25 16:53:52 -07:00
parent 5867465510
commit e3f3670c7e
3 changed files with 20 additions and 75 deletions

View File

@@ -247,6 +247,7 @@ gnulib_modules="
stat-time
stdbool
stdc_leading_zeros
stdc_trailing_zeros
stdckdint
stdlib-safer
stpcpy