On Fri, Nov 20, 2020 at 01:51:54PM +0100, Peter Zijlstra wrote: > > Other option would be to change the const_ilog2 macro, though as the > description says it is meant to be used also in C constant expressions, > and while GCC will fold it to constant with constant argument even in > those, perhaps it is better to avoid using extensions in that case.
Just for info, the description is outdated and Sparse is just fine with __builtin_clzll() and friends in constant expressions (since Feb 2017) -- Luc