1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-06-15 23:35:50 +00:00
Files
Paul Eggert 01b366c149 stdbit-h: remove stdbit.c
lib/stdbit.c was present only to define private helper functions.
Move them into lib/stdc_leading_zeros.c and
lib/stdc_trailing_zeros.c, depending on what they help.
The latter now might use the former, since the
_gl_stdbit_ctz family calls the _gl_stdbit_clz family
when !defined _GL_STDBIT_HAS_BUILTIN_CTZ && !defined _MSC_VER,
so stdc_trailing_zeros now depends on stdc_leading_zeros.
* lib/stdbit.c: Remove file.
* lib/stdbit.in.h (_GL_STDBIT_INLINE): Remove.
All uses replaced by _GL_STDC_LEADING_ZEROS_INLINE
or _GL_STDC_TRAILING_ZEROS_INLINE.
* modules/stdbit-h (Files, lib_SOURCES): Remove lib/stdbit.c.
* modules/stdc_trailing_zeros (Depends-on): Add stdc_leading_zeros.
2026-03-16 00:03:12 -07:00

72 lines
2.7 KiB
Plaintext

Description:
A <stdbit.h> for platforms that lack it.
Files:
lib/stdbit.in.h
m4/stdbit_h.m4
Depends-on:
gen-header
include_next
extern-inline [$GL_GENERATE_STDBIT_H]
bool [$GL_GENERATE_STDBIT_H]
configure.ac:
gl_STDBIT_H
gl_CONDITIONAL_HEADER([stdbit.h])
AC_PROG_MKDIR_P
Makefile.am:
BUILT_SOURCES += $(STDBIT_H)
# We need the following in order to create <stdbit.h> when the system
# doesn't have one that works with the given compiler.
if GL_GENERATE_STDBIT_H
stdbit.h: stdbit.in.h $(top_builddir)/config.status
@NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
$(gl_V_at)$(SED_HEADER_STDOUT) \
-e 's/@''HAVE_STDBIT_H''@/$(HAVE_STDBIT_H)/g' \
-e 's/@''GUARD_PREFIX''@/$(GUARD_PREFIX)/g' \
-e 's/@''PRAGMA_SYSTEM_HEADER''@/$(PRAGMA_SYSTEM_HEADER)/g' \
-e 's/@''PRAGMA_COLUMNS''@/$(PRAGMA_COLUMNS)/g' \
-e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \
-e 's/@''NEXT_STDBIT_H''@/$(NEXT_STDBIT_H)/g' \
-e 's/@''GNULIB_STDC_LEADING_ZEROS''@/$(GNULIB_STDC_LEADING_ZEROS)/g' \
-e 's/@''GNULIB_STDC_LEADING_ONES''@/$(GNULIB_STDC_LEADING_ONES)/g' \
-e 's/@''GNULIB_STDC_TRAILING_ZEROS''@/$(GNULIB_STDC_TRAILING_ZEROS)/g' \
-e 's/@''GNULIB_STDC_TRAILING_ONES''@/$(GNULIB_STDC_TRAILING_ONES)/g' \
-e 's/@''GNULIB_STDC_FIRST_LEADING_ZERO''@/$(GNULIB_STDC_FIRST_LEADING_ZERO)/g' \
-e 's/@''GNULIB_STDC_FIRST_LEADING_ONE''@/$(GNULIB_STDC_FIRST_LEADING_ONE)/g' \
-e 's/@''GNULIB_STDC_FIRST_TRAILING_ZERO''@/$(GNULIB_STDC_FIRST_TRAILING_ZERO)/g' \
-e 's/@''GNULIB_STDC_FIRST_TRAILING_ONE''@/$(GNULIB_STDC_FIRST_TRAILING_ONE)/g' \
-e 's/@''GNULIB_STDC_COUNT_ZEROS''@/$(GNULIB_STDC_COUNT_ZEROS)/g' \
-e 's/@''GNULIB_STDC_COUNT_ONES''@/$(GNULIB_STDC_COUNT_ONES)/g' \
-e 's/@''GNULIB_STDC_HAS_SINGLE_BIT''@/$(GNULIB_STDC_HAS_SINGLE_BIT)/g' \
-e 's/@''GNULIB_STDC_BIT_WIDTH''@/$(GNULIB_STDC_BIT_WIDTH)/g' \
-e 's/@''GNULIB_STDC_BIT_FLOOR''@/$(GNULIB_STDC_BIT_FLOOR)/g' \
-e 's/@''GNULIB_STDC_BIT_CEIL''@/$(GNULIB_STDC_BIT_CEIL)/g' \
-e 's/@''GNULIB_STDC_ROTATE_LEFT''@/$(GNULIB_STDC_ROTATE_LEFT)/g' \
-e 's/@''GNULIB_STDC_ROTATE_RIGHT''@/$(GNULIB_STDC_ROTATE_RIGHT)/g' \
-e 's/@''GNULIB_STDC_MEMREVERSE8''@/$(GNULIB_STDC_MEMREVERSE8)/g' \
-e 's/@''GNULIB_STDC_MEMREVERSE8U''@/$(GNULIB_STDC_MEMREVERSE8U)/g' \
-e 's/@''GNULIB_STDC_LOAD8_ALIGNED''@/$(GNULIB_STDC_LOAD8_ALIGNED)/g' \
-e 's/@''GNULIB_STDC_LOAD8''@/$(GNULIB_STDC_LOAD8)/g' \
-e 's/@''GNULIB_STDC_STORE8_ALIGNED''@/$(GNULIB_STDC_STORE8_ALIGNED)/g' \
-e 's/@''GNULIB_STDC_STORE8''@/$(GNULIB_STDC_STORE8)/g' \
$(srcdir)/stdbit.in.h > $@-t
$(AM_V_at)mv $@-t $@
else
stdbit.h: $(top_builddir)/config.status
rm -f $@
endif
MOSTLYCLEANFILES += stdbit.h stdbit.h-t
Include:
<stdbit.h>
License:
LGPLv2+
Maintainer:
all