Lines Matching refs:dp
17 struct dotprod *dp; in initdp_port() local
23 dp = (struct dotprod *)calloc(1,sizeof(struct dotprod)); in initdp_port()
24 dp->len = len; in initdp_port()
27 dp->coeffs = (signed short *)calloc(len,sizeof(signed short)); in initdp_port()
29 dp->coeffs[j] = coeffs[j]; in initdp_port()
30 return (void *)dp; in initdp_port()
36 struct dotprod *dp = (struct dotprod *)p; in freedp_port() local
38 if(dp->coeffs != NULL) in freedp_port()
39 free(dp->coeffs); in freedp_port()
40 free(dp); in freedp_port()
47 struct dotprod *dp = (struct dotprod *)p; in dotprod_port() local
52 for(i=0;i<dp->len;i++){ in dotprod_port()
53 corr += (long)a[i] * dp->coeffs[i]; in dotprod_port()