static inline void s_zero(int cur_diff, struct G722Band *band)

{

    int s_zero = 0;



    #define ACCUM(k, x, d) do { \

            int tmp = x; \

            band->zero_mem[k] = ((band->zero_mem[k] * 255) >> 8) + \

               d*((band->diff_mem[k]^cur_diff) < 0 ? -128 : 128); \

            band->diff_mem[k] = tmp; \

            s_zero += (tmp * band->zero_mem[k]) >> 15; \

        } while (0)

    if (cur_diff) {

        ACCUM(5, band->diff_mem[4], 1);

        ACCUM(4, band->diff_mem[3], 1);

        ACCUM(3, band->diff_mem[2], 1);

        ACCUM(2, band->diff_mem[1], 1);

        ACCUM(1, band->diff_mem[0], 1);

        ACCUM(0, cur_diff << 1, 1);

    } else {

        ACCUM(5, band->diff_mem[4], 0);

        ACCUM(4, band->diff_mem[3], 0);

        ACCUM(3, band->diff_mem[2], 0);

        ACCUM(2, band->diff_mem[1], 0);

        ACCUM(1, band->diff_mem[0], 0);

        ACCUM(0, cur_diff << 1, 0);

    }

    #undef ACCUM

    band->s_zero = s_zero;

}

static inline void s_zero(int cur_diff, struct G722Band *band)

{

    int s_zero = 0;



    #define ACCUM(k, x, d) do { \

            int tmp = x; \

            band->zero_mem[k] = ((band->zero_mem[k] * 255) >> 8) + \

               d*((band->diff_mem[k]^cur_diff) < 0 ? -128 : 128); \

            band->diff_mem[k] = tmp; \

            s_zero += (tmp * band->zero_mem[k]) >> 15; \

        } while (0)

    if (cur_diff) {

        ACCUM(5, band->diff_mem[4], 1);

        ACCUM(4, band->diff_mem[3], 1);

        ACCUM(3, band->diff_mem[2], 1);

        ACCUM(2, band->diff_mem[1], 1);

        ACCUM(1, band->diff_mem[0], 1);

        ACCUM(0, cur_diff << 1, 1);

    } else {

        ACCUM(5, band->diff_mem[4], 0);

        ACCUM(4, band->diff_mem[3], 0);

        ACCUM(3, band->diff_mem[2], 0);

        ACCUM(2, band->diff_mem[1], 0);

        ACCUM(1, band->diff_mem[0], 0);

        ACCUM(0, cur_diff << 1, 0);

    }

    #undef ACCUM

    band->s_zero = s_zero;

}

        ACCUM(0, cur_diff << 1, 1);         ACCUM(0, cur_diff << 1, 0);
static inline void VAR_2(int VAR_0, struct G722Band *VAR_1)

{

    int VAR_2 = 0;



    #define ACCUM(k, x, d) do { \

            int VAR_3 = x; \

            VAR_1->zero_mem[k] = ((VAR_1->zero_mem[k] * 255) >> 8) + \

               d*((VAR_1->diff_mem[k]^VAR_0) < 0 ? -128 : 128); \

            VAR_1->diff_mem[k] = VAR_3; \

            VAR_2 += (VAR_3 * VAR_1->zero_mem[k]) >> 15; \

        } while (0)

    if (VAR_0) {

        ACCUM(5, VAR_1->diff_mem[4], 1);

        ACCUM(4, VAR_1->diff_mem[3], 1);

        ACCUM(3, VAR_1->diff_mem[2], 1);

        ACCUM(2, VAR_1->diff_mem[1], 1);

        ACCUM(1, VAR_1->diff_mem[0], 1);

        ACCUM(0, VAR_0 << 1, 1);

    } else {

        ACCUM(5, VAR_1->diff_mem[4], 0);

        ACCUM(4, VAR_1->diff_mem[3], 0);

        ACCUM(3, VAR_1->diff_mem[2], 0);

        ACCUM(2, VAR_1->diff_mem[1], 0);

        ACCUM(1, VAR_1->diff_mem[0], 0);

        ACCUM(0, VAR_0 << 1, 0);

    }

    #undef ACCUM

    VAR_1->VAR_2 = VAR_2;

}

static inline void VAR_2(int VAR_0, struct G722Band *VAR_1)
{ int VAR_2 = 0; #define ACCUM(k, x, d) do { \ int VAR_3 = x; \ VAR_1->zero_mem[k] = ((VAR_1->zero_mem[k] * 255) >> 8) + \
d*((VAR_1->diff_mem[k]^VAR_0) < 0 ? -128 : 128); \ VAR_1->diff_mem[k] = VAR_3; \ VAR_2 += (VAR_3 * VAR_1->zero_mem[k]) >> 15; \ } while (0) if (VAR_0) { ACCUM(5, VAR_1->diff_mem[4], 1); ACCUM(4, VAR_1->diff_mem[3], 1); ACCUM(3, VAR_1->diff_mem[2], 1); ACCUM(2, VAR_1->diff_mem[1], 1); ACCUM(1, VAR_1->diff_mem[0], 1); ACCUM(0, VAR_0 << 1, 1); } else { ACCUM(5, VAR_1->diff_mem[4], 0); ACCUM(4, VAR_1->diff_mem[3], 0); ACCUM(3, VAR_1->diff_mem[2], 0); ACCUM(2, VAR_1->diff_mem[1], 0); ACCUM(1, VAR_1->diff_mem[0], 0); ACCUM(0, VAR_0 << 1, 0); } #undef ACCUM
VAR_1->VAR_2 = VAR_2; }