[libc-commits] [libc] [libc][stdbit] implement stdc_trailing_ones (C23) (PR #80459)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Fri Feb 2 15:43:47 PST 2024


================
@@ -55,6 +85,20 @@ inline unsigned stdc_leading_ones(unsigned long long x) {
       unsigned: stdc_leading_ones_ui,                                          \
       unsigned long: stdc_leading_ones_ul,                                     \
       unsigned long long: stdc_leading_ones_ull)(x)
+#define stdc_trailing_zeros(x)                                                 \
+  _Generic((x),                                                                \
----------------
nickdesaulniers wrote:

Filed https://github.com/llvm/llvm-project/issues/80509 and will link to it from here.

https://github.com/llvm/llvm-project/pull/80459


More information about the libc-commits mailing list