static void intra_predict_hor_dc_8x8_msa(uint8_t *src, int32_t stride)

{

    uint8_t lp_cnt;

    uint32_t src0 = 0, src1 = 0;

    uint64_t out0, out1;



    for (lp_cnt = 0; lp_cnt < 4; lp_cnt++) {

        src0 += src[lp_cnt * stride - 1];

        src1 += src[(4 + lp_cnt) * stride - 1];

    }



    src0 = (src0 + 2) >> 2;

    src1 = (src1 + 2) >> 2;

    out0 = src0 * 0x0101010101010101;

    out1 = src1 * 0x0101010101010101;



    for (lp_cnt = 4; lp_cnt--;) {

        SD(out0, src);

        SD(out1, (src + 4 * stride));

        src += stride;

    }

}

static void intra_predict_hor_dc_8x8_msa(uint8_t *src, int32_t stride)

{

    uint8_t lp_cnt;

    uint32_t src0 = 0, src1 = 0;

    uint64_t out0, out1;



    for (lp_cnt = 0; lp_cnt < 4; lp_cnt++) {

        src0 += src[lp_cnt * stride - 1];

        src1 += src[(4 + lp_cnt) * stride - 1];

    }



    src0 = (src0 + 2) >> 2;

    src1 = (src1 + 2) >> 2;

    out0 = src0 * 0x0101010101010101;

    out1 = src1 * 0x0101010101010101;



    for (lp_cnt = 4; lp_cnt--;) {

        SD(out0, src);

        SD(out1, (src + 4 * stride));

        src += stride;

    }

}

static void FUNC_0(uint8_t *VAR_0, int32_t VAR_1)

{

    uint8_t lp_cnt;

    uint32_t src0 = 0, src1 = 0;

    uint64_t out0, out1;



    for (lp_cnt = 0; lp_cnt < 4; lp_cnt++) {

        src0 += VAR_0[lp_cnt * VAR_1 - 1];

        src1 += VAR_0[(4 + lp_cnt) * VAR_1 - 1];

    }



    src0 = (src0 + 2) >> 2;

    src1 = (src1 + 2) >> 2;

    out0 = src0 * 0x0101010101010101;

    out1 = src1 * 0x0101010101010101;



    for (lp_cnt = 4; lp_cnt--;) {

        SD(out0, VAR_0);

        SD(out1, (VAR_0 + 4 * VAR_1));

        VAR_0 += VAR_1;

    }

}

static void FUNC_0(uint8_t *VAR_0, int32_t VAR_1)
{ uint8_t lp_cnt; uint32_t src0 = 0, src1 = 0; uint64_t out0, out1; for (lp_cnt = 0; lp_cnt < 4; lp_cnt++) { src0 += VAR_0[lp_cnt * VAR_1 - 1]; src1 += VAR_0[(4 + lp_cnt) * VAR_1 - 1]; } src0 = (src0 + 2) >> 2; src1 = (src1 + 2) >> 2; out0 = src0 * 0x0101010101010101; out1 = src1 * 0x0101010101010101; for (lp_cnt = 4; lp_cnt--;) { SD(out0, VAR_0); SD(out1, (VAR_0 + 4 * VAR_1)); VAR_0 += VAR_1; } }