Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-12-08 01:28:19 +0300
committerJames Almer <jamrial@gmail.com>2017-12-08 01:34:12 +0300
commitf2aa0ce5a059cf02ee4cbd68111dd2ad622edc85 (patch)
treedb9a9e6139a88342513fffeaf75f813ff8235849 /libavfilter/x86
parentdc33fe1d0080e932faa9fe3c7fb4850dfde161a8 (diff)
x86/vf_hflip: use xor to zero initialize registers
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter/x86')
-rw-r--r--libavfilter/x86/vf_hflip.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/x86/vf_hflip.asm b/libavfilter/x86/vf_hflip.asm
index 9f262ece5c..89d6d0c69b 100644
--- a/libavfilter/x86/vf_hflip.asm
+++ b/libavfilter/x86/vf_hflip.asm
@@ -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
@@ -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