Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
6c5433c8
Commit
6c5433c8
authored
Aug 26, 2013
by
Yaowu Xu
Browse files
Fix the reading of too many input pixels
in VP9_get4x4var_mmx Change-Id: I4b4a8f45f25ebdfad281f169cc87aba5e2d6f227
parent
66ccf5dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/x86/vp9_variance_impl_mmx.asm
View file @
6c5433c8
...
...
@@ -342,8 +342,8 @@ sym(vp9_get4x4var_mmx):
movsxd
rdx
,
dword
ptr
arg
(
3
)
;[recon_stride]
; Row 1
mov
q
mm0
,
[
rax
]
; Copy
eight
bytes to mm0
mov
q
mm1
,
[
rbx
]
; Copy
eight
bytes to mm1
mov
d
mm0
,
[
rax
]
; Copy
4
bytes to mm0
mov
d
mm1
,
[
rbx
]
; Copy
4
bytes to mm1
punpcklbw
mm0
,
mm6
; unpack to higher prrcision
punpcklbw
mm1
,
mm6
psubsw
mm0
,
mm1
; A-B (low order) to MM0
...
...
@@ -351,12 +351,12 @@ sym(vp9_get4x4var_mmx):
pmaddwd
mm0
,
mm0
; square and accumulate
add
rbx
,
rdx
; Inc pointer into ref data
add
rax
,
rcx
; Inc pointer into the new data
mov
q
mm1
,
[
rbx
]
; Copy
eight
bytes to mm1
mov
d
mm1
,
[
rbx
]
; Copy
4
bytes to mm1
paddd
mm7
,
mm0
; accumulate in mm7
; Row 2
mov
q
mm0
,
[
rax
]
; Copy
eight
bytes to mm0
mov
d
mm0
,
[
rax
]
; Copy
4
bytes to mm0
punpcklbw
mm0
,
mm6
; unpack to higher prrcision
punpcklbw
mm1
,
mm6
psubsw
mm0
,
mm1
; A-B (low order) to MM0
...
...
@@ -365,11 +365,11 @@ sym(vp9_get4x4var_mmx):
pmaddwd
mm0
,
mm0
; square and accumulate
add
rbx
,
rdx
; Inc pointer into ref data
add
rax
,
rcx
; Inc pointer into the new data
mov
q
mm1
,
[
rbx
]
; Copy
eight
bytes to mm1
mov
d
mm1
,
[
rbx
]
; Copy
4
bytes to mm1
paddd
mm7
,
mm0
; accumulate in mm7
; Row 3
mov
q
mm0
,
[
rax
]
; Copy
eight
bytes to mm0
mov
d
mm0
,
[
rax
]
; Copy
4
bytes to mm0
punpcklbw
mm0
,
mm6
; unpack to higher prrcision
punpcklbw
mm1
,
mm6
psubsw
mm0
,
mm1
; A-B (low order) to MM0
...
...
@@ -378,11 +378,11 @@ sym(vp9_get4x4var_mmx):
pmaddwd
mm0
,
mm0
; square and accumulate
add
rbx
,
rdx
; Inc pointer into ref data
add
rax
,
rcx
; Inc pointer into the new data
mov
q
mm1
,
[
rbx
]
; Copy
eight
bytes to mm1
mov
d
mm1
,
[
rbx
]
; Copy
4
bytes to mm1
paddd
mm7
,
mm0
; accumulate in mm7
; Row 4
mov
q
mm0
,
[
rax
]
; Copy
eight
bytes to mm0
mov
d
mm0
,
[
rax
]
; Copy
4
bytes to mm0
punpcklbw
mm0
,
mm6
; unpack to higher prrcision
punpcklbw
mm1
,
mm6
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment