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

Side by Side Diff: media/base/simd/x86inc.asm

Issue 8046012: Make media/ PIC-clean on 32-bit Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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
« no previous file with comments | « no previous file | no next file » | 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 ;* x86inc.asm 2 ;* x86inc.asm
3 ;***************************************************************************** 3 ;*****************************************************************************
4 ;* Copyright (C) 2005-2011 x264 project 4 ;* Copyright (C) 2005-2011 x264 project
5 ;* 5 ;*
6 ;* Authors: Loren Merritt <lorenm@u.washington.edu> 6 ;* Authors: Loren Merritt <lorenm@u.washington.edu>
7 ;* Anton Mitrofanov <BugMaster@narod.ru> 7 ;* Anton Mitrofanov <BugMaster@narod.ru>
8 ;* Jason Garrett-Glaser <darkshikari@gmail.com> 8 ;* Jason Garrett-Glaser <darkshikari@gmail.com>
9 ;* 9 ;*
10 ;* Permission to use, copy, modify, and/or distribute this software for any 10 ;* Permission to use, copy, modify, and/or distribute this software for any
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 ; 3DNow instructions, for sharing code between AVX, SSE and 3DN 943 ; 3DNow instructions, for sharing code between AVX, SSE and 3DN
944 AVX_INSTR pfadd, 1, 0 944 AVX_INSTR pfadd, 1, 0
945 AVX_INSTR pfsub, 1, 0 945 AVX_INSTR pfsub, 1, 0
946 AVX_INSTR pfmul, 1, 0 946 AVX_INSTR pfmul, 1, 0
947 947
948 ;============================================================================= 948 ;=============================================================================
949 ; Chromium extensions 949 ; Chromium extensions
950 ;============================================================================= 950 ;=============================================================================
951 951
952 %ifdef CHROMIUM 952 %ifdef CHROMIUM
953 ; Always build PIC code on Mac for Chromium. 953 ; Always build PIC code on Mac or Linux for Chromium.
954 %ifdef MACHO 954 %ifdef MACHO
955 %define PIC 955 %define PIC
956 %endif 956 %endif
957 %ifdef ELF
958 %define PIC
959 %endif
957 960
958 ; 961 ;
959 ; LOAD_SYM %1 (reg), %2 (sym) 962 ; LOAD_SYM %1 (reg), %2 (sym)
960 ; Copies the address to a local symbol to the specified register. 963 ; Copies the address to a local symbol to the specified register.
961 ; 964 ;
962 965
963 %macro LOAD_SYM 2 966 %macro LOAD_SYM 2
964 967
965 %ifdef MACHO 968 %ifdef PIC
966 call %%geteip 969 call %%geteip
967 add %1, %2 - $ 970 add %1, %2 - $
968 jmp %%end 971 jmp %%end
969 %%geteip: 972 %%geteip:
970 mov %1, [rsp] 973 mov %1, [rsp]
971 ret 974 ret
972 %%end: 975 %%end:
973 976
974 %else 977 %else
975 lea %1, [%2] 978 lea %1, [%2]
(...skipping 24 matching lines...) Expand all
1000 %define PRIVATE :private_extern 1003 %define PRIVATE :private_extern
1001 %elifdef ELF 1004 %elifdef ELF
1002 %define PRIVATE :hidden 1005 %define PRIVATE :hidden
1003 %else 1006 %else
1004 %define PRIVATE 1007 %define PRIVATE
1005 %endif 1008 %endif
1006 1009
1007 %endif ; CHROMIUM 1010 %endif ; CHROMIUM
1008 1011
1009 %endif ; MEDIA_BASE_SIMD_X86INC_ASM_ 1012 %endif ; MEDIA_BASE_SIMD_X86INC_ASM_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698