Commit 925e33b2 authored by YunQiang Su's avatar YunQiang Su Committed by Michael Niedermayer

avcodec/mips/cabac: replace addi with addiu

addi/daddi are deprecated by MIPS for years, and MIPS r6 remove
them.

They should be replace with addiu:
   ADDIU performs the same arithmetic operation but
   does not trap on overflow.
Reviewed-by: 's avatarShiyou Yin <yinshiyou-hf@loongson.cn>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent a45e8ade
......@@ -72,7 +72,7 @@ static av_always_inline int get_cabac_inline(CABACContext *c,
"and %[tmp0], %[c_low], %[cabac_mask] \n\t"
"bnez %[tmp0], 1f \n\t"
PTR_ADDI "%[tmp0], %[c_low], -0X01 \n\t"
PTR_ADDIU "%[tmp0], %[c_low], -0x01 \n\t"
"xor %[tmp0], %[c_low], %[tmp0] \n\t"
PTR_SRA "%[tmp0], %[tmp0], 0x0f \n\t"
PTR_ADDU "%[tmp0], %[tmp0], %[tables] \n\t"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment