avutil/mips: refactor msa SLDI_Bn_0 and SLDI_Bn macros.
authorgxw <guxiwei-hf@loongson.cn>
Tue, 6 Aug 2019 11:11:16 +0000 (19:11 +0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 15 Sep 2019 22:04:18 +0000 (00:04 +0200)
commit92fc0bfa54d82e3bb18138f9f0ebc3a7322b64ce
tree8486e67e8177fd2043a11c339a5896393f1373de
parent77937a42e7127271bd50d7f8035c3ebd5a1047c5
avutil/mips: refactor msa SLDI_Bn_0 and SLDI_Bn macros.

Changing details as following:
1. The previous order of parameters are irregular and difficult to
   understand. Adjust the order of the parameters according to the
   rule: (RTYPE, input registers, input mask/input index/..., output registers).
   Most of the existing msa macros follow the rule.
2. Remove the redundant macro SLDI_Bn_0 and use SLDI_Bn instead.

Reviewed-by: Shiyou Yin <yinshiyou-hf@loongson.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
12 files changed:
libavcodec/mips/h264dsp_msa.c
libavcodec/mips/h264qpel_msa.c
libavcodec/mips/hevc_lpf_sao_msa.c
libavcodec/mips/hevcpred_msa.c
libavcodec/mips/hpeldsp_msa.c
libavcodec/mips/me_cmp_msa.c
libavcodec/mips/qpeldsp_msa.c
libavcodec/mips/vp8_mc_msa.c
libavcodec/mips/vp9_idct_msa.c
libavcodec/mips/vp9_lpf_msa.c
libavcodec/mips/vp9_mc_msa.c
libavutil/mips/generic_macros_msa.h