x86/vf_hflip: use xor to zero initialize registers
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
dc33fe1d00
commit
f2aa0ce5a0
@ -32,7 +32,7 @@ SECTION .text
|
|||||||
INIT_XMM ssse3
|
INIT_XMM ssse3
|
||||||
cglobal hflip_byte, 3, 5, 3, src, dst, w, r, x
|
cglobal hflip_byte, 3, 5, 3, src, dst, w, r, x
|
||||||
mova m0, [pb_flip_byte]
|
mova m0, [pb_flip_byte]
|
||||||
mov xq, 0
|
xor xq, xq
|
||||||
movsxdifnidn wq, wd
|
movsxdifnidn wq, wd
|
||||||
mov rq, wq
|
mov rq, wq
|
||||||
and rq, 2 * mmsize - 1
|
and rq, 2 * mmsize - 1
|
||||||
@ -70,7 +70,7 @@ RET
|
|||||||
|
|
||||||
cglobal hflip_short, 3, 5, 3, src, dst, w, r, x
|
cglobal hflip_short, 3, 5, 3, src, dst, w, r, x
|
||||||
mova m0, [pb_flip_short]
|
mova m0, [pb_flip_short]
|
||||||
mov xq, 0
|
xor xq, xq
|
||||||
add wd, wd
|
add wd, wd
|
||||||
mov rq, wq
|
mov rq, wq
|
||||||
and rq, 2 * mmsize - 1
|
and rq, 2 * mmsize - 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user