| Index: webrtc/common_audio/signal_processing/spl_sqrt.c
|
| diff --git a/webrtc/common_audio/signal_processing/spl_sqrt.c b/webrtc/common_audio/signal_processing/spl_sqrt.c
|
| index 579e714a1104b965ebdb5065324a08a24637c4f8..511039b6507d36cc913bc2a86138c63a8a31dab5 100644
|
| --- a/webrtc/common_audio/signal_processing/spl_sqrt.c
|
| +++ b/webrtc/common_audio/signal_processing/spl_sqrt.c
|
| @@ -15,10 +15,9 @@
|
| *
|
| */
|
|
|
| +#include "webrtc/base/checks.h"
|
| #include "webrtc/common_audio/signal_processing/include/signal_processing_library.h"
|
|
|
| -#include <assert.h>
|
| -
|
| int32_t WebRtcSpl_SqrtLocal(int32_t in);
|
|
|
| int32_t WebRtcSpl_SqrtLocal(int32_t in)
|
| @@ -166,7 +165,7 @@ int32_t WebRtcSpl_Sqrt(int32_t value)
|
| x_norm = (int16_t)(A >> 16); // x_norm = AH
|
|
|
| nshift = (sh / 2);
|
| - assert(nshift >= 0);
|
| + RTC_DCHECK_GE(nshift, 0);
|
|
|
| A = (int32_t)WEBRTC_SPL_LSHIFT_W32((int32_t)x_norm, 16);
|
| A = WEBRTC_SPL_ABS_W32(A); // A = abs(x_norm<<16)
|
|
|