[libc-commits] [libc] [libc] implement stdc_leading_zeros_u* for stdbit.h (PR #79669)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Mon Jan 29 10:48:50 PST 2024


nickdesaulniers wrote:

> https://snapshots.sourceware.org/glibc/trunk/latest/manual/html_node/Bit-Manipulation.html Maybe not in this commit. Consider define the macros:

Right, there's something like 70 functions to implement for stdbit.h. This PR is just 5 of them (with the corresponding type-generic macro).  In terms of completeness, we'll need to ensure that we provide all of the preprocessor defines that the standard mandates.  Since those macros may be used as feature detection, we should wait to provide them until the implementation is complete and tested.

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


More information about the libc-commits mailing list