62 points · by ngaut · 4y ago · 19 comments
I believe it does 128 bits per instruction, but I'm still struggling with rust w/ asm.
Along my journeys, however, I found this repo https://github.com/WojciechMula/sse-popcount/ which has tons of competing simd implementations for both intel and arm.
If the rumours are true that AMD Zen 4 will have AVX-512, then it'll be yet another sad corporate failure of watching a small underdog competitor show you how you are supposed to be managing your own flagship products...
Can anyone with actual hardware experience comment?
[1] Have I got that wrong? Is it 25%
(edited to de-screw formatting)*
(Treating it as completely opaque is, I believe, also why you can get away with things like inlining AVX2 ASM on an -mno-avx2 build, for example.)
[1] - https://news.ycombinator.com/item?id=31312175
We're each cells in a neutral meta network, triggering each other.
Still, modern processors have BMI2. For some practical applications, the PEXT instruction is pretty comparable, here’s an example: https://stackoverflow.com/a/72106877/126995