summaryrefslogtreecommitdiff
path: root/lib/rbcodec/codecs/libopus/celt/entcode.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbcodec/codecs/libopus/celt/entcode.h')
-rw-r--r--lib/rbcodec/codecs/libopus/celt/entcode.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rbcodec/codecs/libopus/celt/entcode.h b/lib/rbcodec/codecs/libopus/celt/entcode.h
index 13d6c84ef0..3763e3f284 100644
--- a/lib/rbcodec/codecs/libopus/celt/entcode.h
+++ b/lib/rbcodec/codecs/libopus/celt/entcode.h
@@ -122,7 +122,7 @@ opus_uint32 ec_tell_frac(ec_ctx *_this);
122 122
123/* Tested exhaustively for all n and for 1<=d<=256 */ 123/* Tested exhaustively for all n and for 1<=d<=256 */
124static OPUS_INLINE opus_uint32 celt_udiv(opus_uint32 n, opus_uint32 d) { 124static OPUS_INLINE opus_uint32 celt_udiv(opus_uint32 n, opus_uint32 d) {
125 celt_assert(d>0); 125 celt_sig_assert(d>0);
126#ifdef USE_SMALL_DIV_TABLE 126#ifdef USE_SMALL_DIV_TABLE
127 if (d>256) 127 if (d>256)
128 return n/d; 128 return n/d;
@@ -138,7 +138,7 @@ static OPUS_INLINE opus_uint32 celt_udiv(opus_uint32 n, opus_uint32 d) {
138} 138}
139 139
140static OPUS_INLINE opus_int32 celt_sudiv(opus_int32 n, opus_int32 d) { 140static OPUS_INLINE opus_int32 celt_sudiv(opus_int32 n, opus_int32 d) {
141 celt_assert(d>0); 141 celt_sig_assert(d>0);
142#ifdef USE_SMALL_DIV_TABLE 142#ifdef USE_SMALL_DIV_TABLE
143 if (n<0) 143 if (n<0)
144 return -(opus_int32)celt_udiv(-n, d); 144 return -(opus_int32)celt_udiv(-n, d);