[v0,2/2] Makefile.inc, stdbit/Makefile.inc: Add stdbit

Message ID 20260313170335.2240233-3-joel@rtems.org
State New
Headers
Series Add C23 stdbit.h functions |

Commit Message

Joel Sherrill March 13, 2026, 5:03 p.m. UTC
  ---
 newlib/libc/Makefile.inc        |  1 +
 newlib/libc/stdbit/Makefile.inc | 15 +++++++++++++++
 2 files changed, 16 insertions(+)
 create mode 100644 newlib/libc/stdbit/Makefile.inc
  

Patch

diff --git a/newlib/libc/Makefile.inc b/newlib/libc/Makefile.inc
index d07eed764..39e98338d 100644
--- a/newlib/libc/Makefile.inc
+++ b/newlib/libc/Makefile.inc
@@ -56,6 +56,7 @@  include %D%/misc/Makefile.inc
 include %D%/unix/Makefile.inc
 include %D%/posix/Makefile.inc
 include %D%/syscalls/Makefile.inc
+include %D%/stdbit/Makefile.inc
 include %D%/iconv/Makefile.inc
 include %D%/xdr/Makefile.inc
 include %D%/ssp/Makefile.inc
diff --git a/newlib/libc/stdbit/Makefile.inc b/newlib/libc/stdbit/Makefile.inc
new file mode 100644
index 000000000..0f91f6797
--- /dev/null
+++ b/newlib/libc/stdbit/Makefile.inc
@@ -0,0 +1,15 @@ 
+libc_a_SOURCES += \
+	%D/stdc_bit_ceil.c \
+	%D/stdc_bit_floor.c \
+	%D/stdc_bit_width.c \
+	%D/stdc_count_ones.c \
+	%D/stdc_count_zeros.c \
+	%D/stdc_first_leading_one.c \
+	%D/stdc_first_leading_zero.c \
+	%D/stdc_first_trailing_one.c \
+	%D/stdc_first_trailing_zero.c \
+	%D/stdc_has_single_bit.c \
+	%D/stdc_leading_ones.c \
+	%D/stdc_leading_zeros.c \
+	%D/stdc_trailing_ones.c \
+	%D/stdc_trailing_zeros.c