static void quantize_mantissas(AC3EncodeContext *s)

{

    int blk, ch;





    for (blk = 0; blk < AC3_MAX_BLOCKS; blk++) {

        AC3Block *block = &s->blocks[blk];

        s->mant1_cnt  = s->mant2_cnt  = s->mant4_cnt  = 0;

        s->qmant1_ptr = s->qmant2_ptr = s->qmant4_ptr = NULL;



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

            quantize_mantissas_blk_ch(s, block->fixed_coef[ch], block->exp_shift[ch],

                                      block->exp[ch], block->bap[ch],

                                      block->qmant[ch], s->nb_coefs[ch]);

        }

    }

}

static void quantize_mantissas(AC3EncodeContext *s)

{

    int blk, ch;





    for (blk = 0; blk < AC3_MAX_BLOCKS; blk++) {

        AC3Block *block = &s->blocks[blk];

        s->mant1_cnt  = s->mant2_cnt  = s->mant4_cnt  = 0;

        s->qmant1_ptr = s->qmant2_ptr = s->qmant4_ptr = NULL;



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

            quantize_mantissas_blk_ch(s, block->fixed_coef[ch], block->exp_shift[ch],

                                      block->exp[ch], block->bap[ch],

                                      block->qmant[ch], s->nb_coefs[ch]);

        }

    }

}

            quantize_mantissas_blk_ch(s, block->fixed_coef[ch], block->exp_shift[ch],
static void FUNC_0(AC3EncodeContext *VAR_0)

{

    int VAR_1, VAR_2;





    for (VAR_1 = 0; VAR_1 < AC3_MAX_BLOCKS; VAR_1++) {

        AC3Block *block = &VAR_0->blocks[VAR_1];

        VAR_0->mant1_cnt  = VAR_0->mant2_cnt  = VAR_0->mant4_cnt  = 0;

        VAR_0->qmant1_ptr = VAR_0->qmant2_ptr = VAR_0->qmant4_ptr = NULL;



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

            quantize_mantissas_blk_ch(VAR_0, block->fixed_coef[VAR_2], block->exp_shift[VAR_2],

                                      block->exp[VAR_2], block->bap[VAR_2],

                                      block->qmant[VAR_2], VAR_0->nb_coefs[VAR_2]);

        }

    }

}

static void FUNC_0(AC3EncodeContext *VAR_0)
{ int VAR_1, VAR_2; for (VAR_1 = 0; VAR_1 < AC3_MAX_BLOCKS; VAR_1++) { AC3Block *block = &VAR_0->blocks[VAR_1]; VAR_0->mant1_cnt  = VAR_0->mant2_cnt  = VAR_0->mant4_cnt  = 0; VAR_0->qmant1_ptr = VAR_0->qmant2_ptr = VAR_0->qmant4_ptr = NULL; for (VAR_2 = 0; VAR_2 < VAR_0->channels; VAR_2++) { quantize_mantissas_blk_ch(VAR_0, block->fixed_coef[VAR_2], block->exp_shift[VAR_2],
block->exp[VAR_2], block->bap[VAR_2],
block->qmant[VAR_2], VAR_0->nb_coefs[VAR_2]); } } }