OSDN Git Service

avcodec/mips: loongson optimize mmi load and store operators
authorZhou Xiaoyong <zhouxiaoyong@loongson.cn>
Mon, 10 Oct 2016 08:09:12 +0000 (16:09 +0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 23 Oct 2016 01:23:09 +0000 (03:23 +0200)
commit89ec4adad6cb8c8bb4ecd61b51d42ebde424bcfb
tree27e253e28cafea544679ac48c458efef65dd12ad
parentb9cd9226609bd2d8bfd3a706c345a9a890e973e5
avcodec/mips: loongson optimize mmi load and store operators

1.MMI_ load/store macros are defined in libavutil/mips/mmiutils.h
2.Replace some unnecessary unaligned access with aligned operator
3.The MMI_ load/store is compatible with cpu loongson2e/2f which not support instructions start with gs

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mips/blockdsp_mmi.c
libavcodec/mips/h264chroma_mmi.c
libavcodec/mips/h264dsp_mmi.c
libavcodec/mips/h264pred_mmi.c
libavcodec/mips/h264qpel_mmi.c
libavcodec/mips/hpeldsp_mmi.c
libavcodec/mips/idctdsp_mmi.c
libavcodec/mips/mpegvideo_mmi.c
libavcodec/mips/pixblockdsp_mmi.c