1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-21 06:55:39 +00:00
emacs/m4
Paul Eggert 88b0bb4db9 Prefer stdbit.h to count-one-bits.h etc
C23's <stdbit.h> in the long run should be better supported than
Gnulib's count-one-bits.h and similar headers, so switch to the
C23 primitives, with a Gnulib fallback for platforms lacking C23.
* admin/merge-gnulib (GNULIB_MODULES): Remove count-leading-zeros,
count-one-bits, count-trailing-zeros.  Add stdc_bit_width,
stdc_count_ones, stdc_trailing_zeros.
* lib/count-leading-zeros.c, lib/count-leading-zeros.h:
* lib/count-one-bits.c, lib/count-one-bits.h:
* lib/count-trailing-zeros.c, lib/count-trailing-zeros.h: Remove.
* lib/stdbit.c, lib/stdbit.in.h, lib/stdc_bit_width.c:
* lib/stdc_count_ones.c, lib/stdc_leading_zeros.c:
* lib/stdc_trailing_zeros.c, m4/stdbit_h.m4:
New files, copied from Gnulib.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* src/data.c: Do not include count-one-bits.h, count-trailing-zeros.h.
Instead, rely on lisp.h including stdbit.h.
(Flogcount, Fbool_vector_count_population)
(Fbool_vector_count_consecutive): Use stdbit.h macros instead of
count-one-bits.h and count-trailing-zeros.h macros.
(shift_right_ull, count_one_bits_word, pre_value)
(count_trailing_zero_bits): Remove; no longer needed.
* src/lisp.h: Include stdbit.h instead of count-leading-zeros.h.
(elogb): Use stdbit.h macro instead of count-leading-zeros.h macro.
2024-05-18 10:23:51 -07:00
..
__inline.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
00gnulib.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
absolute-header.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
acl.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
alloca.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
assert_h.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
builtin-expect.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
byteswap.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-18 10:23:50 -07:00
c-bool.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
canonicalize.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
clock_time.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
codeset.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
copy-file-range.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
d-type.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
dirent_h.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
dirfd.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
double-slash-root.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
dup2.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
eealloc.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
environ.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
errno_h.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
euidaccess.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
execinfo.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
explicit_bzero.m4
extensions.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
extern-inline.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
faccessat.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
fchmodat.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
fcntl_h.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
fcntl.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
fdopendir.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
filemode.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
flexmember.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
fpending.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
fpieee.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
free.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
fstatat.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
fsusage.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
fsync.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
futimens.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
getdelim.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
getdtablesize.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
getgroups.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
getline.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
getloadavg.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
getopt.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
getrandom.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
gettime.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
gettimeofday.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
gnulib-common.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
gnulib-comp.m4 Prefer stdbit.h to count-one-bits.h etc 2024-05-18 10:23:51 -07:00
group-member.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
ieee754-h.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
include_next.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
inttypes.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
largefile.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
lchmod.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
libgmp.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
limits-h.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
lstat.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
malloc.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
manywarnings.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
mbstate_t.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
md5.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
memmem.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
mempcpy.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
memrchr.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
memset_explicit.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
minmax.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
mkostemp.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
mktime.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
mode_t.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
multiarch.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
musl.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
nanosleep.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
ndk-build.m4 Generate Android shared library list automatically 2024-04-22 16:30:15 +08:00
nocrash.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
nproc.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
nstrftime.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
off_t.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
open-cloexec.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
open-slash.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
open.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
pathmax.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
pid_t.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
pipe2.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
pkg.m4
printf-posix-rpl.m4
pselect.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
pthread_sigmask.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
rawmemchr.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
readlink.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
readlinkat.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
readutmp.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
realloc.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
regex.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
sha1.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
sha256.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
sha512.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
sig2str.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
sigdescr_np.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
signal_h.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
socklen.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
ssize_t.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
st_dm_mode.m4
stat-time.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
std-gnu11.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
stdalign.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-18 10:23:50 -07:00
stdbit_h.m4 Prefer stdbit.h to count-one-bits.h etc 2024-05-18 10:23:51 -07:00
stddef_h.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
stdint.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
stdio_h.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
stdlib_h.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-18 10:23:50 -07:00
stpcpy.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
string_h.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
strnlen.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
strtoimax.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
strtoll.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
symlink.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
sys_random_h.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
sys_select_h.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
sys_socket_h.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
sys_stat_h.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
sys_time_h.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
sys_types_h.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
tempname.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
time_h.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
time_r.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
time_rz.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
timegm.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
timer_time.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
timespec.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
tm_gmtoff.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
unistd_h.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
unlocked-io.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
utimens.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
utimensat.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
utimes.m4
vararrays.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
warnings.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
wchar_t.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
xattr.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00
year2038.m4
zzgnulib.m4 Update from Gnulib by running admin/merge-gnulib 2024-05-11 18:46:26 -07:00