CMM2: CSUB BitOrderReverse


Author Message
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1148
Posted: 05:08pm 09 Sep 2020      

This is a conversion of an old bit order reversal CFunction for MM2.

Demo and C source:
Bitorderreversal.zip

I needed it for a project.

BitOrderReverse Demo

Input:
0010111100101111001011110010111100101111001011110010111100101111
Output:
1111010011110100111101001111010011110100111101001111010011110100
10000 loops:  CSUB          FUNC          Empty      1x CSUB  1x FUNC
                 
              233ms         572ms         22ms         21us    55us


Regards
Michael