48 #ifndef AVUTIL_FIXED_DSP_H
49 #define AVUTIL_FIXED_DSP_H
133 const int *src2,
int len);
178 int retval, bit_mask, guess,
square,
i;
187 retval = retval <<
shift2;
188 bit_mask = (1 << (
shift2 - 1));
191 guess = retval + bit_mask;
192 accu = (int64_t)guess * guess;
200 else retval >>= (-
shift2);
static float win(SuperEqualizerContext *s, float n, int N)
Macro definitions for various function/variable attributes.
common internal and external API header
void ff_fixed_dsp_init_x86(AVFixedDSPContext *fdsp)
static av_always_inline int fixed_sqrt(int x, int bits)
Calculate the square root.
AVFixedDSPContext * avpriv_alloc_fixed_dsp(int strict)
Allocate and initialize a fixed DSP context.
static const int shift1[6]
static const int shift2[6]
typedef void(RENAME(mix_any_func_type))
void(* vector_fmul_window)(int32_t *dst, const int32_t *src0, const int32_t *src1, const int32_t *win, int len)
Overlap/add with window function.
void(* vector_fmul_add)(int *dst, const int *src0, const int *src1, const int *src2, int len)
Calculate the entry wise product of two vectors of integers, add a third vector of integers and store...
void(* vector_fmul_reverse)(int *dst, const int *src0, const int *src1, int len)
void(* vector_fmul)(int *dst, const int *src0, const int *src1, int len)
Fixed-point multiplication that calculates the entry wise product of two vectors of integers and stor...
int(* scalarproduct_fixed)(const int *v1, const int *v2, int len)
Calculate the scalar product of two vectors of integers.
void(* butterflies_fixed)(int *av_restrict v1, int *av_restrict v2, int len)
Calculate the sum and difference of two vectors of integers.
void(* vector_fmul_window_scaled)(int16_t *dst, const int32_t *src0, const int32_t *src1, const int32_t *win, int len, uint8_t bits)
Overlap/add with window function.