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

Unified Diff: media/base/vector_math.h

Issue 13726011: Add vector_math::FMUL. Replace audio_util::AdjustVolume. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments. Created 7 years, 8 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
Index: media/base/vector_math.h
diff --git a/media/base/vector_math.h b/media/base/vector_math.h
index 10c3039d805fd93502c3ddcd22fc648b5446441d..2618687ec142cdd8888e39a0aee7a193da108131 100644
--- a/media/base/vector_math.h
+++ b/media/base/vector_math.h
@@ -17,6 +17,10 @@ enum { kRequiredAlignment = 16 };
// |src| and |dest| must be aligned by kRequiredAlignment.
MEDIA_EXPORT void FMAC(const float src[], float scale, int len, float dest[]);
+// Multiply each element of |src| by |scale| and store in |dest|. |src| and
+// |dest| must be aligned by kRequiredAlignment.
henrika (OOO until Aug 14) 2013/04/08 18:41:09 What happens if they are not properly aligned?
DaleCurtis 2013/04/08 19:11:40 When using mm_load instead of mm_loadu (unaligned)
+MEDIA_EXPORT void FMUL(const float src[], float scale, int len, float dest[]);
+
} // namespace vector_math
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698