These instructions count the number of set bits (1-bits). This is also commonly referred to as population count.
RV32 | RV64 | Mnemonic | Instruction |
---|---|---|---|
✓ |
✓ |
cpop rd, rs |
|
✓ |
cpopw rd, rs |
These instructions count the number of set bits (1-bits). This is also commonly referred to as population count.
RV32 | RV64 | Mnemonic | Instruction |
---|---|---|---|
✓ |
✓ |
cpop rd, rs |
|
✓ |
cpopw rd, rs |