arjav1528 opened a new pull request, #18347: URL: https://github.com/apache/nuttx/pull/18347
## Summary Add optional C23 `stdbit.h` support so builds can provide `<stdbit.h>` when the toolchain does not. Follows the same pattern as `stdarg.h` / `math.h`: redirect at `include/nuttx/lib/stdbit.h`, copied to `include/stdbit.h` when enabled. - **Kconfig:** `ARCH_HAVE_STDBIT_H`, `ARCH_STDBIT_H` (arch-specific), `LIBC_STDBIT_GENERIC` (generic on any arch). - **Header:** Generic implementation using `__builtin_clz`/`__builtin_ctz`/`__builtin_popcount` for all C23 stdbit macros; archs may provide `arch/<arch>/include/stdbit.h`. - **Build:** Unix.mk, Win.mk, CMake copy the header when either option is set. - **Libc:** Optional `libs/libc/stdbit/stdbit_verify.c` (compile-time check when stdbit enabled). - **Docs:** `Documentation/legacy_README.md` and `Documentation/components/libs/libc/index.rst`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
