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

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

Issue 341293003: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 6 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 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 pop rbp 653 pop rbp
654 ret 654 ret
655 %undef flimit4 655 %undef flimit4
656 656
657 657
658 ;void vp8_plane_add_noise_wmt (unsigned char *Start, unsigned char *noise, 658 ;void vp8_plane_add_noise_wmt (unsigned char *Start, unsigned char *noise,
659 ; unsigned char blackclamp[16], 659 ; unsigned char blackclamp[16],
660 ; unsigned char whiteclamp[16], 660 ; unsigned char whiteclamp[16],
661 ; unsigned char bothclamp[16], 661 ; unsigned char bothclamp[16],
662 ; unsigned int Width, unsigned int Height, int Pitch) 662 ; unsigned int Width, unsigned int Height, int Pitch)
663 extern sym(rand)
664 global sym(vp8_plane_add_noise_wmt) PRIVATE 663 global sym(vp8_plane_add_noise_wmt) PRIVATE
665 sym(vp8_plane_add_noise_wmt): 664 sym(vp8_plane_add_noise_wmt):
666 push rbp 665 push rbp
667 mov rbp, rsp 666 mov rbp, rsp
668 SHADOW_ARGS_TO_STACK 8 667 SHADOW_ARGS_TO_STACK 8
669 GET_GOT rbx 668 GET_GOT rbx
670 push rsi 669 push rsi
671 push rdi 670 push rdi
672 ; end prolog 671 ; end prolog
673 672
674 .addnoise_loop: 673 .addnoise_loop:
675 call sym(rand) WRT_PLT 674 call sym(LIBVPX_RAND) WRT_PLT
676 mov rcx, arg(1) ;noise 675 mov rcx, arg(1) ;noise
677 and rax, 0xff 676 and rax, 0xff
678 add rcx, rax 677 add rcx, rax
679 678
680 ; we rely on the fact that the clamping vectors are stored contiguously 679 ; we rely on the fact that the clamping vectors are stored contiguously
681 ; in black/white/both order. Note that we have to reload this here because 680 ; in black/white/both order. Note that we have to reload this here because
682 ; rdx could be trashed by rand() 681 ; rdx could be trashed by rand()
683 mov rdx, arg(2) ; blackclamp 682 mov rdx, arg(2) ; blackclamp
684 683
685 684
(...skipping 29 matching lines...) Expand all
715 RESTORE_GOT 714 RESTORE_GOT
716 UNSHADOW_ARGS 715 UNSHADOW_ARGS
717 pop rbp 716 pop rbp
718 ret 717 ret
719 718
720 719
721 SECTION_RODATA 720 SECTION_RODATA
722 align 16 721 align 16
723 four8s: 722 four8s:
724 times 4 dd 8 723 times 4 dd 8
OLDNEW
« no previous file with comments | « source/libvpx/vp8/common/x86/postproc_mmx.asm ('k') | source/libvpx/vp8/common/x86/postproc_x86.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698