diff options
author | James Almer <jamrial@gmail.com> | 2014-12-26 17:09:02 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2014-12-26 17:15:34 -0300 |
commit | a4f876a1a2595e99f682b68a4eabaa95a61b47fa (patch) | |
tree | 877c2698b431495d05195064c7d3cf7e31354bb4 /libavfilter/x86/vf_fspp.asm | |
parent | 466e32bf25ac0a9abb216edc6670f747504685f1 (diff) | |
download | ffmpeg-a4f876a1a2595e99f682b68a4eabaa95a61b47fa.tar.gz |
x86/vf_fspp: move pxor in store slice functions out of the loop
m7 is not overwritten, so we only need to clear it once.
Found by Christophe Gisquet.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter/x86/vf_fspp.asm')
-rw-r--r-- | libavfilter/x86/vf_fspp.asm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/x86/vf_fspp.asm b/libavfilter/x86/vf_fspp.asm index 5ad4275ed8..fbf531b22c 100644 --- a/libavfilter/x86/vf_fspp.asm +++ b/libavfilter/x86/vf_fspp.asm @@ -77,11 +77,11 @@ cglobal store_slice, 2, 7, 0, dst, src, width, dither_height, dither, tmp, tmp2 mov src_strideq, tmp2q shl tmpq, 4 lea dither_heightq, [ditherq+dither_heightq*8] + pxor m7, m7 .loop_height: movq m3, [ditherq] movq m4, m3 - pxor m7, m7 punpcklbw m3, m7 punpckhbw m4, m7 mov tmp2q, widthq @@ -143,11 +143,11 @@ cglobal store_slice2, 0, 7, 0, dst, src, width, dither_height, dither, tmp, tmp2 mov src_strideq, tmp2q shl tmpq, 5 lea dither_heightq, [ditherq+dither_heightq*8] + pxor m7, m7 .loop_height: movq m3, [ditherq] movq m4, m3 - pxor m7, m7 punpcklbw m3, m7 punpckhbw m4, m7 mov tmp2q,widthq |