avcodec/mips: [loongson] reoptimize put and add pixels clamped functions.
authorShiyou Yin <yinshiyou-hf@loongson.cn>
Wed, 5 Sep 2018 10:31:05 +0000 (18:31 +0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 5 Sep 2018 19:45:52 +0000 (21:45 +0200)
commit776909e42e2a9cef37035f070464bbbfa3441c39
treebdc0ce004c315b9adb9550f3b8742c64be7f2f82
parent1a4a8df249426c85ba6c96ef5ab022afaaf4dc8f
avcodec/mips: [loongson] reoptimize put and add pixels clamped functions.

Simplify the usage of intermediate variable addr and remove unused variable all64
in following functions:
1. ff_put_pixels_clamped_mmi
2. ff_put_signed_pixels_clamped_mmi
3. ff_add_pixels_clamped_mmi

This optimization speed up mpeg4 decode about 2% on loongson platform(tested with 3A3000).

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mips/idctdsp_mmi.c