Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
x86/vf_hflip: don't load the width argument twice
Signed-off-by: James Almer <jamrial@gmail.com>
  • Loading branch information
jamrial committed Dec 7, 2017
1 parent 79a7447 commit dc33fe1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libavfilter/x86/vf_hflip.asm
Expand Up @@ -33,7 +33,7 @@ INIT_XMM ssse3
cglobal hflip_byte, 3, 5, 3, src, dst, w, r, x
mova m0, [pb_flip_byte]
mov xq, 0
mov wd, dword wm
movsxdifnidn wq, wd
mov rq, wq
and rq, 2 * mmsize - 1
cmp wq, 2 * mmsize
Expand Down Expand Up @@ -71,8 +71,7 @@ RET
cglobal hflip_short, 3, 5, 3, src, dst, w, r, x
mova m0, [pb_flip_short]
mov xq, 0
mov wd, dword wm
add wq, wq
add wd, wd
mov rq, wq
and rq, 2 * mmsize - 1
cmp wq, 2 * mmsize
Expand Down

0 comments on commit dc33fe1

Please sign in to comment.