35 register vec_s32 res = vec_splat_s32(0), t;
38 for (
i = 0;
i < order;
i += 8) {
39 vec1 = vec_vsx_ld(0, v1);
40 t = vec_msum(vec1, vec_ld(0, v2),
zero_s32v);
41 res = vec_sums(t, res);
45 res = vec_splat(res, 3);
46 vec_ste(res, 0, &ires);
static int32_t scalarproduct_int16_vsx(const int16_t *v1, const int16_t *v2, int order)
av_cold void ff_audiodsp_init_vsx(AudioDSPContext *c)
#define i(width, name, range_min, range_max)
Macro definitions for various function/variable attributes.
Contains misc utility macros and inline functions.