23 #ifndef AVCODEC_CELP_MATH_H
24 #define AVCODEC_CELP_MATH_H
34 int16_t
ff_cos(uint16_t arg);
62 if(offset < 0)
return value >> -offset;
63 else return value << offset;
int ff_exp2(uint16_t power)
fixed-point implementation of exp2(x) in [0; 1] domain.
float ff_dot_productf(const float *a, const float *b, int length)
Return the dot product.
int16_t ff_cos(uint16_t arg)
fixed-point implementation of cosine in [0; PI) domain.
int ff_log2(uint32_t value)
Calculate log2(x).
static int bidir_sal(int value, int offset)
Shift value left or right depending on sign of offset parameter.