48#ifndef AVUTIL_FIXED_DSP_H
49#define AVUTIL_FIXED_DSP_H
178 int retval, bit_mask, guess,
square,
i;
187 retval = retval <<
shift2;
188 bit_mask = (1 << (
shift2 - 1));
191 guess = retval + bit_mask;
200 else retval >>= (-
shift2);
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
static float win(SuperEqualizerContext *s, float n, int N)
#define i(width, name, range_min, range_max)
static const uint8_t bits[8]
void ff_fixed_dsp_init_riscv(AVFixedDSPContext *fdsp)
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 uint8_t shift1[6]
static const uint8_t shift2[6]
Macro definitions for various function/variable attributes.
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(* butterflies_fixed)(int *restrict v1, int *restrict v2, int len)
Calculate the sum and difference of two vectors of integers.
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(* 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.