23 #ifndef AVCODEC_CELP_MATH_H 24 #define AVCODEC_CELP_MATH_H 64 if(offset < 0)
return value >> -offset;
65 else return value << offset;
int ff_exp2(uint16_t power)
fixed-point implementation of exp2(x) in [0; 1] domain.
static int bidir_sal(int value, int offset)
Shift value left or right depending on sign of offset parameter.
int64_t ff_dot_product(const int16_t *a, const int16_t *b, int length)
Calculate the dot product of 2 int16_t vectors.
int ff_log2_q15(uint32_t value)
Calculate log2(x).