maint: prefer stdbit.h to count-leading-zeros.h
commit26ba820157bf3a6c5eee8cd57fff472d045c3d8c
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 17 May 2024 04:33:08 +0000 (16 21:33 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 17 May 2024 06:09:32 +0000 (16 23:09 -0700)
tree18d9c134d9778e2bafeccfccaa4754f1fe8989e8
parent23bf614e46d253de523faa35dd8b8a778b809f58
maint: prefer stdbit.h to count-leading-zeros.h

<stdbit.h> is in C23 and should be more portable in the long run,
now that Gnulib supports it.
* bootstrap.conf (gnulib_modules): Remove count-leading-zeros.
Add stdc_leading_zeros.
* gl/lib/randperm.c, src/ioblksize.h:
Include stdbit.h instead of count-leading-zeros.h.
* gl/lib/randperm.c (floor_lg): Remove; no longer needed.
(randperm_bound): Use stdc_bit_width instead of floor_lg;
* gl/modules/randperm (Depends-on): Remove count-leading-zeros.
Add stdc_bit_width.
* src/ioblksize.h (io_blksize): Use stdc_leading_zeros_ull
instead of count_leading_zeros_ll.
bootstrap.conf
gl/lib/randperm.c
gl/modules/randperm
src/ioblksize.h