31 for (i = 0; i <
len; i++)
32 dst[i] = src0[i] * src1[i];
39 for (i = 0; i <
len; i++)
40 dst[i] += src[i] * mul;
47 for (i = 0; i <
len; i++)
48 dst[i] = src[i] * mul;
55 for (i = 0; i <
len; i++)
56 dst[i] = src[i] * mul;
60 const float *
src1,
const float *win,
int len)
68 for (i = -len, j = len - 1; i < 0; i++, j--) {
73 dst[i] = s0 * wj - s1 * wi;
74 dst[j] = s0 * wi + s1 * wj;
79 const float *src2,
int len){
82 for (i = 0; i <
len; i++)
83 dst[i] = src0[i] * src1[i] + src2[i];
92 for (i = 0; i <
len; i++)
93 dst[i] = src0[i] * src1[-i];
101 for (i = 0; i <
len; i++) {
102 float t = v1[i] - v2[i];
113 for (i = 0; i <
len; i++)
void ff_float_dsp_init_x86(AVFloatDSPContext *fdsp)
static void vector_fmul_scalar_c(float *dst, const float *src, float mul, int len)
memory handling functions
float(* scalarproduct_float)(const float *v1, const float *v2, int len)
Calculate the scalar product of two vectors of floats.
void(* vector_fmul_reverse)(float *dst, const float *src0, const float *src1, int len)
Calculate the entry wise product of two vectors of floats, and store the result in a vector of floats...
void ff_float_dsp_init_mips(AVFloatDSPContext *fdsp)
Macro definitions for various function/variable attributes.
void(* vector_fmac_scalar)(float *dst, const float *src, float mul, int len)
Multiply a vector of floats by a scalar float and add to destination vector.
float avpriv_scalarproduct_float_c(const float *v1, const float *v2, int len)
Return the scalar product of two vectors.
void(* vector_fmul_window)(float *dst, const float *src0, const float *src1, const float *win, int len)
Overlap/add with window function.
av_cold void ff_float_dsp_init_aarch64(AVFloatDSPContext *fdsp)
av_cold void ff_float_dsp_init_arm(AVFloatDSPContext *fdsp)
static void butterflies_float_c(float *av_restrict v1, float *av_restrict v2, int len)
void(* vector_fmul)(float *dst, const float *src0, const float *src1, int len)
Calculate the entry wise product of two vectors of floats and store the result in a vector of floats...
void(* butterflies_float)(float *av_restrict v1, float *av_restrict v2, int len)
Calculate the sum and difference of two vectors of floats.
static void vector_fmul_add_c(float *dst, const float *src0, const float *src1, const float *src2, int len)
void(* vector_dmul_scalar)(double *dst, const double *src, double mul, int len)
Multiply a vector of double by a scalar double.
static void vector_dmul_scalar_c(double *dst, const double *src, double mul, int len)
void(* vector_fmul_scalar)(float *dst, const float *src, float mul, int len)
Multiply a vector of floats by a scalar float.
void ff_float_dsp_init_ppc(AVFloatDSPContext *fdsp, int strict)
void(* vector_fmul_add)(float *dst, const float *src0, const float *src1, const float *src2, int len)
Calculate the entry wise product of two vectors of floats, add a third vector of floats and store the...
av_cold AVFloatDSPContext * avpriv_float_dsp_alloc(int bit_exact)
Allocate a float DSP context.
static void vector_fmul_window_c(float *dst, const float *src0, const float *src1, const float *win, int len)
static void vector_fmul_c(float *dst, const float *src0, const float *src1, int len)
static void vector_fmac_scalar_c(float *dst, const float *src, float mul, int len)
void * av_mallocz(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
static void vector_fmul_reverse_c(float *dst, const float *src0, const float *src1, int len)