#include "itf_types.h" void Interleaving(int *input, int *output, struct interleaver_h *ctrl) { int i=0,j=0,k=0; int cols,rows; int *P; cols = ctrl->cols; rows = ctrl->rows; P = ctrl->P; for (j=0;jpermutation) { case NONE: output[k]=input[i*cols+j]; break; case COLS: output[k]=input[i*cols+P[j]]; break; case ROWS: output[k]=input[P[i]*cols+j]; break; } k++; } } }