aboutsummaryrefslogtreecommitdiff
path: root/android-webrtc.mk
diff options
context:
space:
mode:
authorandrew@webrtc.org <andrew@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2012-01-13 19:43:09 +0000
committerandrew@webrtc.org <andrew@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2012-01-13 19:43:09 +0000
commitc8d012fb325ccc08319a979fa996b73fab8cb05e (patch)
treee91280e4faea6bfd1b73ef13a51be681dd7139aa /android-webrtc.mk
parentee3fe5b982fd28663f507679b4bfbdf8b742f879 (diff)
downloadwebrtc-c8d012fb325ccc08319a979fa996b73fab8cb05e.tar.gz
Use -msse2 for SSE2 optimized code.
When targeting 32-bit Linux, we need to pass -msse2 to gcc to compile SSE2 intrinsics. However, -msse2 also gives gcc license to automatically generate SSE2 instructions wherever it pleases. This will crash our code on processors without SSE2 support. This change breaks the files with SSE2 intrinsics into separate targets, such that we can limit the scope of -msse2 to where it's needed. We no longer need to employ the WEBRTC_USE_SSE2 define; the build system decides when SSE2 is supported and compiles the appropriate files. TBR=bjornv@webrtc.org TEST=audioproc (performance testing), audioproc_unittest, video_processing_unittests, build on Linux (targeting ia32/x64, with disable_sse2==0/1), Mac, Windows Review URL: http://webrtc-codereview.appspot.com/352008 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1425 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'android-webrtc.mk')
-rw-r--r--android-webrtc.mk5
1 files changed, 0 insertions, 5 deletions
diff --git a/android-webrtc.mk b/android-webrtc.mk
index dc92aeb8e2..0dae14ceca 100644
--- a/android-webrtc.mk
+++ b/android-webrtc.mk
@@ -42,8 +42,3 @@ ifeq ($(ARCH_ARM_HAVE_ARMV7A),true)
MY_WEBRTC_COMMON_DEFS += \
'-DWEBRTC_ARCH_ARM_V7A'
endif
-
-else ifeq ($(TARGET_ARCH),x86)
-MY_WEBRTC_COMMON_DEFS += \
- '-DWEBRTC_USE_SSE2'
-endif