Better way to tranpose an array?
jstjohnz
Posts: 91
in ASM, I need to convert an array of 16 26-bit values (in consecutive longs, bits 25:0) to an array of 26 16-bit values (in consecutive longs bits 15:0).
To explain it another way, the first long of the output array would consist of the 16 bit0 bits of the input array. The 2nd output long would be the 16 bit1 bits, etc.
I can't really come up with an elegant way to do this, it just seems like it will have to be done bit by bit by bit. Just wondering if someone has a more clever solution.
To explain it another way, the first long of the output array would consist of the 16 bit0 bits of the input array. The 2nd output long would be the 16 bit1 bits, etc.
I can't really come up with an elegant way to do this, it just seems like it will have to be done bit by bit by bit. Just wondering if someone has a more clever solution.
Comments
This is what I have now, not yet tested, but it looks like it's going to take more time than I have. I think I'd be better off eliminating the inner loop and just coding that inline to speed things up per your suggestion. (Next post shows it re-coded in that manner)