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

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

Issue 10868037: Split AudioRendererMixer::VectorFMAC into VectorMath library. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_BASE_VECTOR_MATH_H_
6 #define MEDIA_BASE_VECTOR_MATH_H_
7
8 #include "base/gtest_prod_util.h"
9 #include "media/base/media_export.h"
10
11 namespace media {
12
13 class MEDIA_EXPORT VectorMath {
14 public:
15 // Required alignment for inputs and outputs to all VectorMath functions
16 enum { kRequiredAlignment = 16 };
17
18 // Multiply each element of |src| (up to |len|) by |scale| and add to |dest|.
19 // |src| and |dest| must be aligned by kRequiredAlignment.
20 static void FMAC(const float src[], float scale, int len, float dest[]);
21
22 private:
23 FRIEND_TEST_ALL_PREFIXES(VectorMathTest, FMAC);
24 FRIEND_TEST_ALL_PREFIXES(VectorMathTest, FMACBenchmark);
25
26 static void FMAC_C(const float src[], float scale, int len, float dest[]);
27 static void FMAC_SSE(const float src[], float scale, int len, float dest[]);
Ami GONE FROM CHROMIUM 2012/08/23 17:28:12 As long as this class is a container of stateless
DaleCurtis 2012/08/23 19:59:54 Good idea. Using a namespace allows me to get rid
28 };
29
30 } // namespace media
31
32 #endif // MEDIA_BASE_VECTOR_MATH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698