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

Unified Diff: webrtc/common_audio/fir_filter_sse.cc

Issue 2535643002: Replace some asserts with DCHECKs (Closed)
Patch Set: Don't use the enum hack Created 4 years, 1 month 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 | « webrtc/common_audio/fir_filter_neon.cc ('k') | webrtc/common_audio/resampler/sinc_resampler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_audio/fir_filter_sse.cc
diff --git a/webrtc/common_audio/fir_filter_sse.cc b/webrtc/common_audio/fir_filter_sse.cc
index 89abb00ba4348168d759fda43f73799411cc787a..308eeb676f44f41d045719b05286960acdba83c6 100644
--- a/webrtc/common_audio/fir_filter_sse.cc
+++ b/webrtc/common_audio/fir_filter_sse.cc
@@ -10,11 +10,11 @@
#include "webrtc/common_audio/fir_filter_sse.h"
-#include <assert.h>
#include <stdint.h>
#include <string.h>
#include <xmmintrin.h>
+#include "webrtc/base/checks.h"
#include "webrtc/system_wrappers/include/aligned_malloc.h"
namespace webrtc {
@@ -44,7 +44,7 @@ FIRFilterSSE2::FIRFilterSSE2(const float* coefficients,
}
void FIRFilterSSE2::Filter(const float* in, size_t length, float* out) {
- assert(length > 0);
+ RTC_DCHECK_GT(length, 0);
memcpy(&state_[state_length_], in, length * sizeof(*in));
« no previous file with comments | « webrtc/common_audio/fir_filter_neon.cc ('k') | webrtc/common_audio/resampler/sinc_resampler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698