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 219ed5463977ac5cc172f1117fd0cca3f9008a9a..e83430a95d8c0ec249d81e870a233969234b9043 100644 |
--- a/third_party/WebKit/Source/platform/audio/VectorMath.cpp |
+++ b/third_party/WebKit/Source/platform/audio/VectorMath.cpp |
@@ -29,6 +29,7 @@ |
#include "platform/audio/VectorMath.h" |
#include "wtf/Assertions.h" |
#include "wtf/CPU.h" |
+#include "wtf/MathExtras.h" |
#include <stdint.h> |
#if OS(MACOSX) |
@@ -675,7 +676,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; |
} |