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

Unified Diff: media/base/simd/x86inc.asm

Issue 7891039: Resubmit - Rewrite color space conversions suite using YASM" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/simd/scale_yuv_to_rgb_sse2_x64.asm ('k') | media/base/yuv_convert.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/simd/x86inc.asm
diff --git a/media/base/simd/x86inc.asm b/media/base/simd/x86inc.asm
index 956b999d3545616b79b104aa6d0fa66bc9de3e9e..5e0ca20c5f3ee49dab33cce80ebb529d434a43b7 100644
--- a/media/base/simd/x86inc.asm
+++ b/media/base/simd/x86inc.asm
@@ -95,11 +95,14 @@
%ifdef WIN64
%define PIC
%elifndef ARCH_X86_64
+; For chromium we may build PIC code even for 32 bits system.
+%ifndef CHROMIUM
; x86_32 doesn't require PIC.
; Some distros prefer shared objects to be PIC, but nothing breaks if
; the code contains a few textrels, so we'll skip that complexity.
%undef PIC
%endif
+%endif
%ifdef PIC
default rel
%endif
@@ -947,6 +950,11 @@ AVX_INSTR pfmul, 1, 0
;=============================================================================
%ifdef CHROMIUM
+; Always build PIC code on Mac for Chromium.
+%ifdef MACHO
+%define PIC
+%endif
+
;
; LOAD_SYM %1 (reg), %2 (sym)
; Copies the address to a local symbol to the specified register.
« no previous file with comments | « media/base/simd/scale_yuv_to_rgb_sse2_x64.asm ('k') | media/base/yuv_convert.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698