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

Unified Diff: Source/platform/audio/VectorMath.h

Issue 604373003: [WIP] Supporting arm_neon_optional flag for blink platform. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « Source/platform/Logging.cpp ('k') | Source/platform/audio/VectorMath.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/audio/VectorMath.h
diff --git a/Source/platform/audio/VectorMath.h b/Source/platform/audio/VectorMath.h
index edd4e31382c93120ce896693b80db1ccb818500b..1c86d9f5a96bab5400c773cb9c6f66120938f341 100644
--- a/Source/platform/audio/VectorMath.h
+++ b/Source/platform/audio/VectorMath.h
@@ -53,6 +53,18 @@ PLATFORM_EXPORT void zvmul(const float* real1P, const float* imag1P, const float
// Copies elements while clipping values to the threshold inputs.
PLATFORM_EXPORT void vclip(const float* sourceP, int sourceStride, const float* lowThresholdP, const float* highThresholdP, float* destP, int destStride, size_t framesToProcess);
+#if HAVE(ARM_NEON_INTRINSICS)
+// Neon optimized math functions.
+void vsmaNEON(const float* sourceP, int sourceStride, const float* scale, float* destP, int destStride, size_t framesToProcess);
+void vsmulNEON(const float* sourceP, int sourceStride, const float* scale, float* destP, int destStride, size_t framesToProcess);
+void vaddNEON(const float* source1P, int sourceStride1, const float* source2P, int sourceStride2, float* destP, int destStride, size_t framesToProcess);
+void vmaxmgvNEON(const float* sourceP, int sourceStride, float* maxP, size_t framesToProcess);
+void vsvesqNEON(const float* sourceP, int sourceStride, float* sumP, size_t framesToProcess);
+void vmulNEON(const float* source1P, int sourceStride1, const float* source2P, int sourceStride2, float* destP, int destStride, size_t framesToProcess);
+void zvmulNEON(const float* real1P, const float* imag1P, const float* real2P, const float* imag2P, float* realDestP, float* imagDestP, size_t framesToProcess);
+void vclipNEON(const float* sourceP, int sourceStride, const float* lowThresholdP, const float* highThresholdP, float* destP, int destStride, size_t framesToProcess);
+#endif
+
} // namespace VectorMath
} // namespace blink
« no previous file with comments | « Source/platform/Logging.cpp ('k') | Source/platform/audio/VectorMath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698