| ??? 02/23/11 19:43 Read: times |
#181268 - Barrel shifter Responding to: ???'s previous message |
Yes, the barrel shifter does save a bit of code space, since there is no need for an external loop. Of course, there exists processors that can do n-step shifts/rotates without a barrel shifter too - then the instruction will take a varying number of machine cycles depending on step count.
And as noted, 2-bit fields doesn't allow any huge gains from the bit banding feature. But some gains could be had from doing two writes instead of having load + and + or + store. However, I would think the ARM chip will fast enough anyway. And testing a specific value of the two-bit fields could be done with two integer loads with check for zero/non-zero instead of having to mask out the value. |
| Topic | Author | Date |
| Snake, as a dubious benchmark | 01/01/70 00:00 | |
| especially when --- | 01/01/70 00:00 | |
| mentioned in the "header" of the table | 01/01/70 00:00 | |
| more data | 01/01/70 00:00 | |
| Bit banding? | 01/01/70 00:00 | |
| no | 01/01/70 00:00 | |
Barrel shifter | 01/01/70 00:00 |



