diff options
author | James Darnley <jdarnley@obe.tv> | 2017-03-02 01:48:16 +0100 |
---|---|---|
committer | James Darnley <jdarnley@obe.tv> | 2017-05-15 15:00:16 +0200 |
commit | b5325c6711a6789e6219f6392fd9158cb2c0fcd7 (patch) | |
tree | 47bbe76301775a0b0b3ee475fa9ce8d76c03af00 /libavcodec/x86/h264_idct.asm | |
parent | 060ba9e5e3353a4c50a096f40e9c91b78145cbb8 (diff) | |
download | ffmpeg-b5325c6711a6789e6219f6392fd9158cb2c0fcd7.tar.gz |
avcodec/h264: use some 3 operand forms
Diffstat (limited to 'libavcodec/x86/h264_idct.asm')
-rw-r--r-- | libavcodec/x86/h264_idct.asm | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/libavcodec/x86/h264_idct.asm b/libavcodec/x86/h264_idct.asm index 878ff028df..be15afb766 100644 --- a/libavcodec/x86/h264_idct.asm +++ b/libavcodec/x86/h264_idct.asm @@ -87,10 +87,9 @@ cglobal h264_idct_add_8, 3, 3, 0 RET %macro IDCT8_1D 2 - mova m0, m1 - psraw m1, 1 - mova m4, m5 - psraw m4, 1 + psraw m0, m1, 1 + SWAP 0, 1 + psraw m4, m5, 1 paddw m4, m5 paddw m1, m0 paddw m4, m7 @@ -107,10 +106,9 @@ cglobal h264_idct_add_8, 3, 3, 0 psubw m0, m3 psubw m5, m7 - mova m7, m1 - psraw m1, 2 - mova m3, m4 - psraw m3, 2 + psraw m7, m1, 2 + SWAP 7,1 + psraw m3, m4, 2 paddw m3, m0 psraw m0, 2 paddw m1, m5 @@ -118,10 +116,9 @@ cglobal h264_idct_add_8, 3, 3, 0 psubw m0, m4 psubw m7, m5 - mova m5, m6 - psraw m6, 1 - mova m4, m2 - psraw m4, 1 + psraw m5, m6, 1 + SWAP 5,6 + psraw m4, m2, 1 paddw m6, m2 psubw m4, m5 |