40 static int32_t scalarproduct_int16_altivec(
const int16_t *v1,
const int16_t *v2,
46 register vec_s32 res = vec_splat_s32(0), t;
49 for (i = 0; i < order; i += 8) {
50 vec1 = vec_unaligned_load(v1);
51 t = vec_msum(vec1, vec_ld(0, v2),
zero_s32v);
52 res = vec_sums(t, res);
56 res = vec_splat(res, 3);
57 vec_ste(res, 0, &ires);