Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
x86/vf_hflip: use xor to zero initialize registers
Signed-off-by: James Almer <jamrial@gmail.com>
  • Loading branch information
jamrial committed Dec 7, 2017
1 parent dc33fe1 commit f2aa0ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libavfilter/x86/vf_hflip.asm
Expand Up @@ -32,7 +32,7 @@ SECTION .text
INIT_XMM ssse3
cglobal hflip_byte, 3, 5, 3, src, dst, w, r, x
mova m0, [pb_flip_byte]
mov xq, 0
xor xq, xq
movsxdifnidn wq, wd
mov rq, wq
and rq, 2 * mmsize - 1
Expand Down Expand Up @@ -70,7 +70,7 @@ RET

cglobal hflip_short, 3, 5, 3, src, dst, w, r, x
mova m0, [pb_flip_short]
mov xq, 0
xor xq, xq
add wd, wd
mov rq, wq
and rq, 2 * mmsize - 1
Expand Down

0 comments on commit f2aa0ce

Please sign in to comment.