Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Side by Side Diff: source/libvpx/vp8/common/x86/postproc_mmx.asm

Issue 12982023: libvpx: Pull from upstream (Closed) Base URL: https://src.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/libvpx/vp8/common/reconintra.c ('k') | source/libvpx/vp8/decoder/decodframe.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; 1 ;
2 ; Copyright (c) 2010 The WebM project authors. All Rights Reserved. 2 ; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3 ; 3 ;
4 ; Use of this source code is governed by a BSD-style license 4 ; Use of this source code is governed by a BSD-style license
5 ; that can be found in the LICENSE file in the root of the source 5 ; that can be found in the LICENSE file in the root of the source
6 ; tree. An additional intellectual property rights grant can be found 6 ; tree. An additional intellectual property rights grant can be found
7 ; in the file PATENTS. All contributing project authors may 7 ; in the file PATENTS. All contributing project authors may
8 ; be found in the AUTHORS file in the root of the source tree. 8 ; be found in the AUTHORS file in the root of the source tree.
9 ; 9 ;
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 ; this copies the last row down into the border 8 rows 54 ; this copies the last row down into the border 8 rows
55 mov rdi, rsi 55 mov rdi, rsi
56 mov rdx, arg(2) 56 mov rdx, arg(2)
57 sub rdx, 9 57 sub rdx, 9
58 imul rdx, rax 58 imul rdx, rax
59 lea rdi, [rdi+rdx] 59 lea rdi, [rdi+rdx]
60 movq mm1, QWORD ptr[rdi] ; first row 60 movq mm1, QWORD ptr[rdi] ; first row
61 mov rcx, 8 61 mov rcx, 8
62 .init_borderd ; initialize bo rders 62 .init_borderd ; initialize bo rders
63 lea rdi, [rdi + rax] 63 lea rdi, [rdi + rax]
64 movq [rdi], xmm1 64 movq [rdi], mm1
65 65
66 dec rcx 66 dec rcx
67 jne .init_borderd 67 jne .init_borderd
68 68
69 neg rax ; rax = -pitch 69 neg rax ; rax = -pitch
70 70
71 ; this copies the first row up into the border 8 rows 71 ; this copies the first row up into the border 8 rows
72 mov rdi, rsi 72 mov rdi, rsi
73 movq mm1, QWORD ptr[rdi] ; first row 73 movq mm1, QWORD ptr[rdi] ; first row
74 mov rcx, 8 74 mov rcx, 8
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 push rax 186 push rax
187 lea rax, [GLOBAL(sym(vp8_rv))] 187 lea rax, [GLOBAL(sym(vp8_rv))]
188 movq mm4, [rax + rcx*2] ;vp8_rv[rcx*2] 188 movq mm4, [rax + rcx*2] ;vp8_rv[rcx*2]
189 pop rax 189 pop rax
190 %elif ABI_IS_32BIT=0 190 %elif ABI_IS_32BIT=0
191 movq mm4, [r8 + rcx*2] ;vp8_rv[rcx*2] 191 movq mm4, [r8 + rcx*2] ;vp8_rv[rcx*2]
192 %else 192 %else
193 movq mm4, [sym(vp8_rv) + rcx*2] 193 movq mm4, [sym(vp8_rv) + rcx*2]
194 %endif 194 %endif
195 paddw mm1, mm4 195 paddw mm1, mm4
196 ;paddw xmm1, eight8s
197 psraw mm1, 4 196 psraw mm1, 4
198 197
199 packuswb mm1, mm0 198 packuswb mm1, mm0
200 pand mm1, mm3 199 pand mm1, mm3
201 200
202 pandn mm3, mm2 201 pandn mm3, mm2
203 por mm1, mm3 202 por mm1, mm3
204 203
205 and rcx, 15 204 and rcx, 15
206 movd DWORD PTR [rsp+rcx*4], mm1 ;d[rcx*4] 205 movd DWORD PTR [rsp+rcx*4], mm1 ;d[rcx*4]
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 SECTION_RODATA 304 SECTION_RODATA
306 align 16 305 align 16
307 Blur: 306 Blur:
308 times 16 dw 16 307 times 16 dw 16
309 times 8 dw 64 308 times 8 dw 64
310 times 16 dw 16 309 times 16 dw 16
311 times 8 dw 0 310 times 8 dw 0
312 311
313 rd: 312 rd:
314 times 4 dw 0x40 313 times 4 dw 0x40
OLDNEW
« no previous file with comments | « source/libvpx/vp8/common/reconintra.c ('k') | source/libvpx/vp8/decoder/decodframe.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698