diff options
Diffstat (limited to 'thirdparty/opus/celt/mathops.c')
-rw-r--r-- | thirdparty/opus/celt/mathops.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/thirdparty/opus/celt/mathops.c b/thirdparty/opus/celt/mathops.c index 21a01f52e4..6ee9b9e101 100644 --- a/thirdparty/opus/celt/mathops.c +++ b/thirdparty/opus/celt/mathops.c @@ -38,7 +38,8 @@ #include "mathops.h" /*Compute floor(sqrt(_val)) with exact arithmetic. - This has been tested on all possible 32-bit inputs.*/ + _val must be greater than 0. + This has been tested on all possible 32-bit inputs greater than 0.*/ unsigned isqrt32(opus_uint32 _val){ unsigned b; unsigned g; @@ -182,7 +183,7 @@ opus_val32 celt_rcp(opus_val32 x) int i; opus_val16 n; opus_val16 r; - celt_assert2(x>0, "celt_rcp() only defined for positive values"); + celt_sig_assert(x>0); i = celt_ilog2(x); /* n is Q15 with range [0,1). */ n = VSHR32(x,i-15)-32768; |