Lines Matching refs:src0
34 src0[i] = sign_extend(rnd(), 24); \
40 static void check_vector_fmul(const int *src0, const int *src1)
45 declare_func(void, int *dst, const int *src0, const int *src1, int len);
47 call_ref(ref, src0, src1, BUF_SIZE);
48 call_new(new, src0, src1, BUF_SIZE);
51 bench_new(new, src0, src1, BUF_SIZE);
54 static void check_vector_fmul_add(const int *src0, const int *src1, const int *src2)
59 declare_func(void, int *dst, const int *src0, const int *src1, const int *src2, int len);
61 call_ref(ref, src0, src1, src2, BUF_SIZE);
62 call_new(new, src0, src1, src2, BUF_SIZE);
65 bench_new(new, src0, src1, src2, BUF_SIZE);
68 static void check_vector_fmul_window(const int32_t *src0, const int32_t *src1, const int32_t *win)
73 declare_func(void, int32_t *dst, const int32_t *src0, const int32_t *src1, const int32_t *win, int len);
75 call_ref(ref, src0, src1, win, BUF_SIZE / 2);
76 call_new(new, src0, src1, win, BUF_SIZE / 2);
79 bench_new(new, src0, src1, win, BUF_SIZE / 2);
82 static void check_vector_fmul_window_scaled(const int32_t *src0, const int32_t *src1, const int32_t *win)
87 declare_func(void, int16_t *dst, const int32_t *src0, const int32_t *src1, const int32_t *win, int len, uint8_t bits);
89 call_ref(ref, src0, src1, win, BUF_SIZE / 2, 2);
90 call_new(new, src0, src1, win, BUF_SIZE / 2, 2);
93 bench_new(new, src0, src1, win, BUF_SIZE / 2, 2);
96 static void check_butterflies(const int *src0, const int *src1)
103 declare_func(void, int *av_restrict src0, int *av_restrict src1, int len);
105 memcpy(ref0, src0, BUF_SIZE * sizeof(*src0));
107 memcpy(new0, src0, BUF_SIZE * sizeof(*src0));
115 memcpy(new0, src0, BUF_SIZE * sizeof(*src0));
120 static void check_scalarproduct_fixed(const int *src0, const int *src1)
124 declare_func(int, const int *src0, const int *src1, int len);
126 ref = call_ref(src0, src1, BUF_SIZE);
127 new = call_new(src0, src1, BUF_SIZE);
130 bench_new(src0, src1, BUF_SIZE);
135 LOCAL_ALIGNED_32(int32_t, src0, [BUF_SIZE]);
142 check_vector_fmul(src0, src1);
144 check_vector_fmul_add(src0, src1, src2);
146 check_vector_fmul(src0, src1);
148 check_vector_fmul_window(src0, src1, src2);
150 check_vector_fmul_window_scaled(src0, src1, src2);
153 check_butterflies(src0, src1);
156 check_scalarproduct_fixed(src0, src1);