static void shift_history(DCAEncContext *c, const int32_t *input)

{

    int k, ch;



    for (k = 0; k < 512; k++)

        for (ch = 0; ch < c->channels; ch++) {

            const int chi = c->channel_order_tab[ch];



            c->history[k][ch] = input[k * c->channels + chi];

        }

}

static void shift_history(DCAEncContext *c, const int32_t *input)

{

    int k, ch;



    for (k = 0; k < 512; k++)

        for (ch = 0; ch < c->channels; ch++) {

            const int chi = c->channel_order_tab[ch];



            c->history[k][ch] = input[k * c->channels + chi];

        }

}

static void FUNC_0(DCAEncContext *VAR_0, const int32_t *VAR_1)

{

    int VAR_2, VAR_3;



    for (VAR_2 = 0; VAR_2 < 512; VAR_2++)

        for (VAR_3 = 0; VAR_3 < VAR_0->channels; VAR_3++) {

            const int chi = VAR_0->channel_order_tab[VAR_3];



            VAR_0->history[VAR_2][VAR_3] = VAR_1[VAR_2 * VAR_0->channels + chi];

        }

}

static void FUNC_0(DCAEncContext *VAR_0, const int32_t *VAR_1)
{ int VAR_2, VAR_3; for (VAR_2 = 0; VAR_2 < 512; VAR_2++) for (VAR_3 = 0; VAR_3 < VAR_0->channels; VAR_3++) { const int chi = VAR_0->channel_order_tab[VAR_3]; VAR_0->history[VAR_2][VAR_3] = VAR_1[VAR_2 * VAR_0->channels + chi]; } }