diff options
author | YunQiang Su <syq@debian.org> | 2019-07-02 06:52:43 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-07-10 13:54:57 +0300 |
commit | 925e33b253c81112960854c61cdbb71682e51f4b (patch) | |
tree | 64ae34e40220797d1c30080f652710c2ea0fa487 /libavcodec/mips | |
parent | a45e8ade2d2d46fde48ee0567ab18e23dc8c71d1 (diff) |
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: Shiyou Yin <yinshiyou-hf@loongson.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/mips')
-rw-r--r-- | libavcodec/mips/cabac.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mips/cabac.h b/libavcodec/mips/cabac.h index 82cee29d73..2a05e5ab3c 100644 --- a/libavcodec/mips/cabac.h +++ b/libavcodec/mips/cabac.h @@ -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" |