On Wed, 19 Mar 2025 09:48:47 +0100 Philipp Klaus Krause <p...@spth.de> wrote: > What is the reason to use implementation-specific builtins? > > The type-generic macro stdc_leading_zeros from stdbit.h (section 7.18.3 > of the ISO C23 standard) looks like it would be fine here.
Hi, The upstream docs for building from source say: "You need a C++ compiler with C++17" but offer no further guidance. I went for the minimum change rather than risk breaking things on systems I can't test. If it was just for Debian then I totally agree your solution is the cleanest. Cheers, Scott