https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125364

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I think even with _BitInt support they won't be useful for C++.
The reason they exist is that in C just using __builtin_{clz,ctz,popcount,...}g
would result in macro arguments of type generic macros being used multiple
times, which is a bad idea when one deeply nests these macros.
In C++, <stdbit.h> doesn't provide macros, but function templates.
And function templates don't suffer from the same problem, they name the
function arguments and can use them as many times as they want.

Reply via email to