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

Side by Side Diff: media/base/vector_math_testing.h

Issue 308003004: Remove runtime CPU detection for SSE optimized media/ methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: One more salty fix. 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
« no previous file with comments | « media/base/vector_math_perftest.cc ('k') | media/base/vector_math_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_VECTOR_MATH_TESTING_H_ 5 #ifndef MEDIA_BASE_VECTOR_MATH_TESTING_H_
6 #define MEDIA_BASE_VECTOR_MATH_TESTING_H_ 6 #define MEDIA_BASE_VECTOR_MATH_TESTING_H_
7 7
8 #include <utility> 8 #include <utility>
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 #include "media/base/media_export.h" 11 #include "media/base/media_export.h"
12 12
13 namespace media { 13 namespace media {
14 namespace vector_math { 14 namespace vector_math {
15 15
16 // Optimized versions exposed for testing. See vector_math.h for details. 16 // Optimized versions exposed for testing. See vector_math.h for details.
17 MEDIA_EXPORT void FMAC_C(const float src[], float scale, int len, float dest[]); 17 MEDIA_EXPORT void FMAC_C(const float src[], float scale, int len, float dest[]);
18 MEDIA_EXPORT void FMUL_C(const float src[], float scale, int len, float dest[]); 18 MEDIA_EXPORT void FMUL_C(const float src[], float scale, int len, float dest[]);
19 MEDIA_EXPORT std::pair<float, float> EWMAAndMaxPower_C( 19 MEDIA_EXPORT std::pair<float, float> EWMAAndMaxPower_C(
20 float initial_value, const float src[], int len, float smoothing_factor); 20 float initial_value, const float src[], int len, float smoothing_factor);
21 21
22 #if defined(ARCH_CPU_X86_FAMILY) 22 #if defined(ARCH_CPU_X86_FAMILY) && !defined(OS_NACL)
23 MEDIA_EXPORT void FMAC_SSE(const float src[], float scale, int len, 23 MEDIA_EXPORT void FMAC_SSE(const float src[], float scale, int len,
24 float dest[]); 24 float dest[]);
25 MEDIA_EXPORT void FMUL_SSE(const float src[], float scale, int len, 25 MEDIA_EXPORT void FMUL_SSE(const float src[], float scale, int len,
26 float dest[]); 26 float dest[]);
27 MEDIA_EXPORT std::pair<float, float> EWMAAndMaxPower_SSE( 27 MEDIA_EXPORT std::pair<float, float> EWMAAndMaxPower_SSE(
28 float initial_value, const float src[], int len, float smoothing_factor); 28 float initial_value, const float src[], int len, float smoothing_factor);
29 #endif 29 #endif
30 30
31 #if defined(ARCH_CPU_ARM_FAMILY) && defined(USE_NEON) 31 #if defined(ARCH_CPU_ARM_FAMILY) && defined(USE_NEON)
32 MEDIA_EXPORT void FMAC_NEON(const float src[], float scale, int len, 32 MEDIA_EXPORT void FMAC_NEON(const float src[], float scale, int len,
33 float dest[]); 33 float dest[]);
34 MEDIA_EXPORT void FMUL_NEON(const float src[], float scale, int len, 34 MEDIA_EXPORT void FMUL_NEON(const float src[], float scale, int len,
35 float dest[]); 35 float dest[]);
36 MEDIA_EXPORT std::pair<float, float> EWMAAndMaxPower_NEON( 36 MEDIA_EXPORT std::pair<float, float> EWMAAndMaxPower_NEON(
37 float initial_value, const float src[], int len, float smoothing_factor); 37 float initial_value, const float src[], int len, float smoothing_factor);
38 #endif 38 #endif
39 39
40 } // namespace vector_math 40 } // namespace vector_math
41 } // namespace media 41 } // namespace media
42 42
43 #endif // MEDIA_BASE_VECTOR_MATH_TESTING_H_ 43 #endif // MEDIA_BASE_VECTOR_MATH_TESTING_H_
OLDNEW
« no previous file with comments | « media/base/vector_math_perftest.cc ('k') | media/base/vector_math_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698