3 ms·
It's kind of pathetic that the RISC-V core instruction set lacks popcount. Besides all its immediate uses, it is essential to a fast integer logarithm.
by ncmncm 7y ago
It's kind of pathetic that the RISC-V core instruction set lacks popcount.
Besides all its immediate uses, it is essential to a fast integer logarithm.
- eleson 7y agoIt is part of the Bit Manipulation extension. So is count leading zeros. Unfortunately it is still in draft. The math extensions are not in draft.
- ncmncm 7y agoBeing in an extension means you can't count on it being there.
- dralley 7y agoThat's a feature (for hardware designers) not a bug. RISC V is not really designed to be a good high performance oriented ISA. They're aimed square at the embedded market.
- ncmncm 7y agoIt's a feature for hardware designers working with 250 nm transistors. Modern designers working with modern processes have the problem of discovering what they can throw a million transistors at that will actually make real programs faster. Hint: bitmanips!