CMM2: CSUB BitOrderReverse


Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8674
Posted: 01:13pm 10 Sep 2020      

If you want it really fast then there is an ARM instruction to reverse the bit order in a word RBIT. You will need to include it as an ASM clause in the C source

https://developer.arm.com/documentation/dui0646/a/the-cortex-m7-instruction-set/general-data-processing-instructions/rev--rev16--revsh--and-rbit?lang=en