On 2024-12-17 12:44, Collin Funk wrote:
Is there any reason not to use stdbit.h for ffs, ffsl, ffsll, count-leading-zeros, count-one-bits, count-trailing-zeros?
Why not instead encourage callers of these modules to use the C23-style modules instead? For example, mark ffs as obsolescent and suggest stdc_trailing_zeros as its replacement. This should improve overall maintainability in the long run, while lessening opportunities for bugs in the short term.