mirror of
https://github.com/xiph/opus.git
synced 2025-06-02 08:37:43 +00:00
Replaces log2() with celt_log2() and fixes a potential divide-by-zero
This commit is contained in:
parent
1ad6f6d557
commit
942fc816d1
3 changed files with 7 additions and 5 deletions
|
@ -165,6 +165,7 @@ opus_val32 celt_sqrt(opus_val32 x);
|
|||
|
||||
opus_val16 celt_cos_norm(opus_val32 x);
|
||||
|
||||
/** Base-2 logarithm approximation (log2(x)). (Q14 input, Q10 output) */
|
||||
static inline opus_val16 celt_log2(opus_val32 x)
|
||||
{
|
||||
int i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue