summaryrefslogtreecommitdiffstats
path: root/media/base/vector_math_testing.h
diff options
context:
space:
mode:
authordalecurtis@google.com <dalecurtis@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-06 00:02:36 +0000
committerdalecurtis@google.com <dalecurtis@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-06 00:02:36 +0000
commit7fc937e75305b121d2d471f90dc2069b33b1085d (patch)
tree8c302a15318cdfe27e1a84d080917e0ad93deca0 /media/base/vector_math_testing.h
parent0570dd374d0f596fb14f58c5077123faa87b0f78 (diff)
downloadchromium_src-7fc937e75305b121d2d471f90dc2069b33b1085d.zip
chromium_src-7fc937e75305b121d2d471f90dc2069b33b1085d.tar.gz
chromium_src-7fc937e75305b121d2d471f90dc2069b33b1085d.tar.bz2
Break out SSE functions into new media_sse target.
It turns out Chrome doesn't have a minimum requirement of SSE yet, so we can't rely on __SSE__ being set at compile time. To use SSE code we need to put it in a separate GYP target compiled with -msse. This patch set does exactly that for vector_fmac::FMAC_SSE() and SincResampler::Convolve_SSE(). Doing so required some slight rearrangements of constants for SincResampler. Given all of our bots should have SSE I've made it a requirement for passing the tests when run on X86. BUG=none TEST=media_unittests Review URL: https://codereview.chromium.org/12478002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186285 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/vector_math_testing.h')
-rw-r--r--media/base/vector_math_testing.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/media/base/vector_math_testing.h b/media/base/vector_math_testing.h
index d364b74..503ca6a 100644
--- a/media/base/vector_math_testing.h
+++ b/media/base/vector_math_testing.h
@@ -5,6 +5,7 @@
#ifndef MEDIA_BASE_VECTOR_MATH_TESTING_H_
#define MEDIA_BASE_VECTOR_MATH_TESTING_H_
+#include "build/build_config.h"
#include "media/base/media_export.h"
namespace media {
@@ -13,8 +14,11 @@ namespace vector_math {
// Optimized versions of FMAC() function exposed for testing. See vector_math.h
// for details.
MEDIA_EXPORT void FMAC_C(const float src[], float scale, int len, float dest[]);
+
+#if defined(ARCH_CPU_X86_FAMILY)
MEDIA_EXPORT void FMAC_SSE(const float src[], float scale, int len,
float dest[]);
+#endif
} // namespace vector_math
} // namespace media