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

Unified Diff: webrtc/common_audio/fir_filter_neon.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.cc ('k') | webrtc/common_audio/fir_filter_sse.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_audio/fir_filter_neon.cc
diff --git a/webrtc/common_audio/fir_filter_neon.cc b/webrtc/common_audio/fir_filter_neon.cc
index a81562655b75298aa3e5d94a1d4415e37ac231d9..54e58d0d7a461f7b2f277c08f549db16bee80d9c 100644
--- a/webrtc/common_audio/fir_filter_neon.cc
+++ b/webrtc/common_audio/fir_filter_neon.cc
@@ -11,9 +11,9 @@
#include "webrtc/common_audio/fir_filter_neon.h"
#include <arm_neon.h>
-#include <assert.h>
#include <string.h>
+#include "webrtc/base/checks.h"
#include "webrtc/system_wrappers/include/aligned_malloc.h"
namespace webrtc {
@@ -43,7 +43,7 @@ FIRFilterNEON::FIRFilterNEON(const float* coefficients,
}
void FIRFilterNEON::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.cc ('k') | webrtc/common_audio/fir_filter_sse.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698