               if (bfi == 0)               {                  d_gain_code (st->pred_state, mode, index, code, &gain_code);               }               else               {                  ec_gain_code (st->ec_gain_c_st, st->pred_state, st->state,                                &gain_code);               }               ec_gain_code_update (st->ec_gain_c_st, bfi, st->prev_bf,                                    &gain_code);                pit_sharp = gain_pit;               if (sub (pit_sharp, SHARPMAX) > 0)             