2 ms·
Odd that GCC is emitting an xor eax, eax before popcount (in both the intrinsic and pattern cases!): popcnt(unsigned int): xor eax, eax
by mmastrac 6y ago
Odd that GCC is emitting an xor eax, eax before popcount (in both the intrinsic and pattern cases!):
popcnt(unsigned int):
xor eax, eax
popcnt eax, edi
ret