Lines Matching refs:src0

44 static void test_vector_fmul(const float *src0, const float *src1)
50 declare_func(void, float *dst, const float *src0, const float *src1,
53 call_ref(cdst, src0, src1, LEN);
54 call_new(odst, src0, src1, LEN);
56 double t = fabs(src0[i]) + fabs(src1[i]) + fabs(src0[i] * src1[i]) + 1.0;
64 bench_new(odst, src0, src1, LEN);
67 static void test_vector_dmul(const double *src0, const double *src1)
73 declare_func(void, double *dst, const double *src0, const double *src1,
76 call_ref(cdst, src0, src1, LEN);
77 call_new(odst, src0, src1, LEN);
79 double t = fabs(src0[i]) + fabs(src1[i]) + fabs(src0[i] * src1[i]) + 1.0;
87 bench_new(odst, src0, src1, LEN);
91 static void test_vector_fmul_add(const float *src0, const float *src1, const float *src2)
97 declare_func(void, float *dst, const float *src0, const float *src1,
100 call_ref(cdst, src0, src1, src2, LEN);
101 call_new(odst, src0, src1, src2, LEN);
110 bench_new(odst, src0, src1, src2, LEN);
113 static void test_vector_fmul_scalar(const float *src0, const float *src1)
121 call_ref(cdst, src0, src1[0], LEN);
122 call_new(odst, src0, src1[0], LEN);
124 double t = fabs(src0[i]) + fabs(src1[0]) + fabs(src0[i] * src1[0]) + 1.0;
132 bench_new(odst, src0, src1[0], LEN);
136 static void test_vector_fmul_window(const float *src0, const float *src1, const float *win)
142 declare_func(void, float *dst, const float *src0, const float *src1,
145 call_ref(cdst, src0, src1, win, LEN / 2);
146 call_new(odst, src0, src1, win, LEN / 2);
155 bench_new(odst, src0, src1, win, LEN / 2);
159 static void test_vector_fmac_scalar(const float *src0, const float *src1, const float *src2)
170 call_ref(cdst, src0, src1[0], LEN);
171 call_new(odst, src0, src1[0], LEN);
181 bench_new(odst, src0, src1[0], LEN);
184 static void test_vector_dmul_scalar(const double *src0, const double *src1)
192 call_ref(cdst, src0, src1[0], LEN);
193 call_new(odst, src0, src1[0], LEN);
195 double t = fabs(src1[0]) + fabs(src0[i]) + fabs(src1[0] * src0[i]) + 1.0;
203 bench_new(odst, src0, src1[0], LEN);
207 static void test_vector_dmac_scalar(const double *src0, const double *src1, const double *src2)
217 call_ref(cdst, src0, src1[0], LEN);
218 call_new(odst, src0, src1[0], LEN);
228 bench_new(odst, src0, src1[0], LEN);
231 static void test_butterflies_float(const float *src0, const float *src1)
239 declare_func(void, float *av_restrict src0, float *av_restrict src1,
242 memcpy(cdst, src0, LEN * sizeof(*src0));
244 memcpy(odst, src0, LEN * sizeof(*src0));
260 memcpy(odst, src0, LEN * sizeof(*src0));
266 static void test_scalarproduct_float(const float *src0, const float *src1)
270 declare_func_float(float, const float *src0, const float *src1, int len);
272 cprod = call_ref(src0, src1, LEN);
273 oprod = call_new(src0, src1, LEN);
279 bench_new(src0, src1, LEN);
284 LOCAL_ALIGNED_32(float, src0, [LEN]);
300 randomize_buffer(src0);
311 test_vector_fmul(src0, src1);
313 test_vector_fmul_add(src0, src1, src2);
317 test_vector_fmul(src0, src1);
322 test_vector_fmac_scalar(src0, src1, src2);