What is the most efficient (fastest) way to serialize / transpose data in this somewhat odd way. Let's say I have 8 array with some data in them.
char Array0[10];
char Array1[10];
.............
char Array7[10];
I need to get an output array that will have:
Output[80];
Output.byte0.bit0 = Array0.byte0.bit0
Output.byte0.bit1 = Array1.byte0.bit0
Output.byte0.bit2 = Array2.byte0.bit0
Output.byte0.bit3 = Array3.byte0.bit0
.....................................
Output.byte0.bit7 = Array7.byte0.bit0
Output.byte1.bit0 = Array0.byte0.bit1
Output.byte1.bit1 = Array1.byte0.bit1
Output.byte1.bit2 = Array2.byte0.bit1
Output.byte1.bit3 = Array3.byte0.bit1
.....................................
Output.byte1.bit7 = Array7.byte0.bit1
Basically Bit0 of the output Array contains serialized data of the input Array0. Bit1 of the output Array contains serialized data of the input Array1 etc...
I'm using a microchip PIC32 device but that shouldn't matter too much, it is still standard C