Index: third_party/WebKit/Source/platform/audio/VectorMath.cpp |
diff --git a/third_party/WebKit/Source/platform/audio/VectorMath.cpp b/third_party/WebKit/Source/platform/audio/VectorMath.cpp |
index 9ee13512122aefd377ba240067dd2ee6f5dfef7c..6c8614914f7eed7fcb9bee148c8354d92d237bfb 100644 |
--- a/third_party/WebKit/Source/platform/audio/VectorMath.cpp |
+++ b/third_party/WebKit/Source/platform/audio/VectorMath.cpp |
@@ -27,6 +27,7 @@ |
#if ENABLE(WEB_AUDIO) |
#include "wtf/Assertions.h" |
#include "wtf/CPU.h" |
+#include "wtf/MathExtras.h" |
#include <stdint.h> |
#if OS(MACOSX) |
@@ -673,7 +674,7 @@ void vclip(const float* sourceP, int sourceStride, const float* lowThresholdP, c |
} |
#endif |
while (n--) { |
- *destP = std::max(std::min(*sourceP, highThreshold), lowThreshold); |
+ *destP = clampTo(*sourceP, lowThreshold, highThreshold); |
sourceP += sourceStride; |
destP += destStride; |
} |