mirror of
https://github.com/xiph/opus.git
synced 2025-06-02 16:47:42 +00:00
Save more integer divisions on ARM when we know the operands are positive
This commit is contained in:
parent
ce1173c77f
commit
29354ff6e0
5 changed files with 18 additions and 13 deletions
|
@ -122,6 +122,7 @@ opus_uint32 ec_tell_frac(ec_ctx *_this);
|
|||
|
||||
/* Tested exhaustively for all n and for 1<=d<=256 */
|
||||
static OPUS_INLINE opus_uint32 celt_udiv(opus_uint32 n, opus_uint32 d) {
|
||||
celt_assert(d>0);
|
||||
#ifdef USE_SMALL_DIV_TABLE
|
||||
if (d>256)
|
||||
return n/d;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue