Renamed celt_[u]int* to opus_[u]int*
This commit is contained in:
parent
3f0962cc1e
commit
d77d6a58fc
43 changed files with 459 additions and 459 deletions
|
@ -39,9 +39,9 @@
|
|||
#include "os_support.h"
|
||||
|
||||
/* Multiplies two 16-bit fractional values. Bit-exactness of this macro is important */
|
||||
#define FRAC_MUL16(a,b) ((16384+((celt_int32)(celt_int16)(a)*(celt_int16)(b)))>>15)
|
||||
#define FRAC_MUL16(a,b) ((16384+((opus_int32)(opus_int16)(a)*(opus_int16)(b)))>>15)
|
||||
|
||||
unsigned isqrt32(celt_uint32 _val);
|
||||
unsigned isqrt32(opus_uint32 _val);
|
||||
|
||||
#ifndef FIXED_POINT
|
||||
|
||||
|
@ -68,7 +68,7 @@ static inline float celt_log2(float x)
|
|||
float frac;
|
||||
union {
|
||||
float f;
|
||||
celt_uint32 i;
|
||||
opus_uint32 i;
|
||||
} in;
|
||||
in.f = x;
|
||||
integer = (in.i>>23)-127;
|
||||
|
@ -86,7 +86,7 @@ static inline float celt_exp2(float x)
|
|||
float frac;
|
||||
union {
|
||||
float f;
|
||||
celt_uint32 i;
|
||||
opus_uint32 i;
|
||||
} res;
|
||||
integer = floor(x);
|
||||
if (integer < -50)
|
||||
|
@ -114,7 +114,7 @@ static inline float celt_exp2(float x)
|
|||
|
||||
#ifndef OVERRIDE_CELT_ILOG2
|
||||
/** Integer log in base2. Undefined for zero and negative numbers */
|
||||
static inline celt_int16 celt_ilog2(celt_int32 x)
|
||||
static inline opus_int16 celt_ilog2(opus_int32 x)
|
||||
{
|
||||
celt_assert2(x>0, "celt_ilog2() only defined for strictly positive numbers");
|
||||
return EC_ILOG(x)-1;
|
||||
|
@ -134,7 +134,7 @@ static inline celt_word16 celt_maxabs16(celt_word16 *x, int len)
|
|||
#endif
|
||||
|
||||
/** Integer log in base2. Defined for zero, but not for negative numbers */
|
||||
static inline celt_int16 celt_zlog2(celt_word32 x)
|
||||
static inline opus_int16 celt_zlog2(celt_word32 x)
|
||||
{
|
||||
return x <= 0 ? 0 : celt_ilog2(x);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue