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

Unified Diff: webrtc/modules/audio_coding/codecs/isac/fix/source/filters_neon.c

Issue 2274083002: Replace calls to assert() with RTC_DCHECK_*() in .c code (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 4 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
Index: webrtc/modules/audio_coding/codecs/isac/fix/source/filters_neon.c
diff --git a/webrtc/modules/audio_coding/codecs/isac/fix/source/filters_neon.c b/webrtc/modules/audio_coding/codecs/isac/fix/source/filters_neon.c
index eff8dae17ccefe969c52ee0e27dbbf651727b44b..df4ef6fa76b1c37e64910d04d88d536fe4087f68 100644
--- a/webrtc/modules/audio_coding/codecs/isac/fix/source/filters_neon.c
+++ b/webrtc/modules/audio_coding/codecs/isac/fix/source/filters_neon.c
@@ -9,8 +9,8 @@
*/
#include <arm_neon.h>
-#include <assert.h>
+#include "webrtc/base/checks.h"
#include "webrtc/modules/audio_coding/codecs/isac/fix/source/codec.h"
// Autocorrelation function in fixed point.
@@ -26,8 +26,8 @@ int WebRtcIsacfix_AutocorrNeon(int32_t* __restrict r,
int64_t prod = 0;
int64_t prod_tail = 0;
- assert(n % 4 == 0);
- assert(n >= 8);
+ RTC_DCHECK_EQ(0, n % 4);
+ RTC_DCHECK_GE(n, 8);
// Calculate r[0].
int16x4_t x0_v;

Powered by Google App Engine
This is Rietveld 408576698