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