News for hackers. Stuff that matters.
Re:Popcount CPU instruction by gpderetta on Monday September 09, 2019 @04:49AM (#20916314)
It is a bug, but in the CPU. Until recently, on intel cpu, the popcnt instruction had an implicit dependency on its output register, which can be a performance issue. Explicitly clearing the register (which is very fast and almost free), is an easy way to workaround it.
Re:Popcount CPU instruction by account42 on Monday September 09, 2019 @07:28AM (#20917135)
Oh, nice info. It's gone when using e.g. -march=znver1.