Tag: assembly

  • __builtin_popcountg

    Looking at https://en.cppreference.com/cpp/utility/bitset/count, I was intrigued to see popcount mentioned in the “See also” section. Handy. That made me curious to see how the stdlibs choose to implement it. Here it is for Clang: libcxx/include/__bit/popcount.h For gcc: libstdc++-v3/include/std/bit So, there’s at least one configuration where they end up both calling something called __builtin_popcountg. What are…