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

Side by Side Diff: source/libvpx/vp9/encoder/x86/vp9_subpel_variance.asm

Issue 23600008: libvpx: Pull from upstream (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 263
264 add srcq, src_strideq 264 add srcq, src_strideq
265 add dstq, dst_strideq 265 add dstq, dst_strideq
266 %else ; %1 < 16 266 %else ; %1 < 16
267 movh m0, [srcq] 267 movh m0, [srcq]
268 movh m2, [srcq+src_strideq] 268 movh m2, [srcq+src_strideq]
269 %if %2 == 1 ; avg 269 %if %2 == 1 ; avg
270 %if mmsize == 16 270 %if mmsize == 16
271 movhps m2, [srcq+src_strideq*2] 271 movhps m2, [srcq+src_strideq*2]
272 %else ; mmsize == 8 272 %else ; mmsize == 8
273 %if %1 == 4
274 movh m1, [srcq+src_strideq*2]
275 punpckldq m2, m1
276 %else
273 punpckldq m2, [srcq+src_strideq*2] 277 punpckldq m2, [srcq+src_strideq*2]
274 %endif 278 %endif
279 %endif
275 movh m1, [dstq] 280 movh m1, [dstq]
276 %if mmsize == 16 281 %if mmsize == 16
277 movlhps m0, m2 282 movlhps m0, m2
278 %else ; mmsize == 8 283 %else ; mmsize == 8
279 punpckldq m0, m2 284 punpckldq m0, m2
280 %endif 285 %endif
281 movh m3, [dstq+dst_strideq] 286 movh m3, [dstq+dst_strideq]
282 pavgb m0, m2 287 pavgb m0, m2
283 punpcklbw m1, m5 288 punpcklbw m1, m5
284 pavgb m0, [secq] 289 pavgb m0, [secq]
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 add srcq, src_strideq 540 add srcq, src_strideq
536 pavgb m0, m3 541 pavgb m0, m3
537 .x_half_y_half_loop: 542 .x_half_y_half_loop:
538 movh m2, [srcq] 543 movh m2, [srcq]
539 movh m3, [srcq+1] 544 movh m3, [srcq+1]
540 %if %2 == 1 ; avg 545 %if %2 == 1 ; avg
541 %if mmsize == 16 546 %if mmsize == 16
542 movhps m2, [srcq+src_strideq] 547 movhps m2, [srcq+src_strideq]
543 movhps m3, [srcq+src_strideq+1] 548 movhps m3, [srcq+src_strideq+1]
544 %else 549 %else
550 %if %1 == 4
551 movh m1, [srcq+src_strideq]
552 punpckldq m2, m1
553 movh m1, [srcq+src_strideq+1]
554 punpckldq m3, m1
555 %else
545 punpckldq m2, [srcq+src_strideq] 556 punpckldq m2, [srcq+src_strideq]
546 punpckldq m3, [srcq+src_strideq+1] 557 punpckldq m3, [srcq+src_strideq+1]
547 %endif 558 %endif
559 %endif
548 pavgb m2, m3 560 pavgb m2, m3
549 %if mmsize == 16 561 %if mmsize == 16
550 movlhps m0, m2 562 movlhps m0, m2
551 movhlps m4, m2 563 movhlps m4, m2
552 %else ; mmsize == 8 564 %else ; mmsize == 8
553 punpckldq m0, m2 565 punpckldq m0, m2
554 pshufw m4, m2, 0xe 566 pshufw m4, m2, 0xe
555 %endif 567 %endif
556 movh m1, [dstq] 568 movh m1, [dstq]
557 pavgb m0, m2 569 pavgb m0, m2
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after
1279 SUBPEL_VARIANCE 4, 1 1291 SUBPEL_VARIANCE 4, 1
1280 INIT_XMM sse2 1292 INIT_XMM sse2
1281 SUBPEL_VARIANCE 8, 1 1293 SUBPEL_VARIANCE 8, 1
1282 SUBPEL_VARIANCE 16, 1 1294 SUBPEL_VARIANCE 16, 1
1283 1295
1284 INIT_MMX ssse3 1296 INIT_MMX ssse3
1285 SUBPEL_VARIANCE 4, 1 1297 SUBPEL_VARIANCE 4, 1
1286 INIT_XMM ssse3 1298 INIT_XMM ssse3
1287 SUBPEL_VARIANCE 8, 1 1299 SUBPEL_VARIANCE 8, 1
1288 SUBPEL_VARIANCE 16, 1 1300 SUBPEL_VARIANCE 16, 1
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/x86/vp9_dct_sse2.c ('k') | source/libvpx/vp9/encoder/x86/vp9_variance_impl_mmx.asm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698