Lines Matching refs:vp
29 struct v615 *vp = p; in init_viterbi615_av() local
36 vp->metrics1.v[i] = (vector unsigned short)(5000); in init_viterbi615_av()
38 vp->old_metrics = &vp->metrics1; in init_viterbi615_av()
39 vp->new_metrics = &vp->metrics2; in init_viterbi615_av()
40 vp->dp = vp->decisions; in init_viterbi615_av()
41 vp->old_metrics->s[starting_state & 16383] = 0; /* Bias known start state */ in init_viterbi615_av()
47 struct v615 *vp; in create_viterbi615_av() local
53 vp = (struct v615 *)malloc(sizeof(struct v615)); in create_viterbi615_av()
54 vp->decisions = malloc(sizeof(decision_t)*(len+14)); in create_viterbi615_av()
55 init_viterbi615_av(vp,0); in create_viterbi615_av()
56 return vp; in create_viterbi615_av()
77 struct v615 *vp = p; in chainback_viterbi615_av() local
78 decision_t *d = (decision_t *)vp->decisions; in chainback_viterbi615_av()
83 path_metric = vp->old_metrics->s[endstate]; in chainback_viterbi615_av()
102 struct v615 *vp = p; in delete_viterbi615_av() local
104 if(vp != NULL){ in delete_viterbi615_av()
105 free(vp->decisions); in delete_viterbi615_av()
106 free(vp); in delete_viterbi615_av()
111 struct v615 *vp = p; in update_viterbi615_blk_av() local
112 decision_t *d = (decision_t *)vp->dp; in update_viterbi615_blk_av()
151 m0 = vec_adds(vp->old_metrics->v[i],metric); in update_viterbi615_blk_av()
152 m3 = vec_adds(vp->old_metrics->v[1024+i],metric); in update_viterbi615_blk_av()
153 m1 = vec_adds(vp->old_metrics->v[1024+i],m_metric); in update_viterbi615_blk_av()
154 m2 = vec_adds(vp->old_metrics->v[i],m_metric); in update_viterbi615_blk_av()
173 vp->new_metrics->v[2*i] = vec_mergeh(survivor0,survivor1); in update_viterbi615_blk_av()
174 vp->new_metrics->v[2*i+1] = vec_mergel(survivor0,survivor1); in update_viterbi615_blk_av()
193 min_metric = max_metric = vp->new_metrics->v[0]; in update_viterbi615_blk_av()
195 min_metric = vec_min(min_metric,vp->new_metrics->v[i]); in update_viterbi615_blk_av()
196 max_metric = vec_max(max_metric,vp->new_metrics->v[i]); in update_viterbi615_blk_av()
228 if(vp->new_metrics->s[0] >= USHRT_MAX-12750){ in update_viterbi615_blk_av()
233 scale = vp->new_metrics->v[0]; in update_viterbi615_blk_av()
235 scale = vec_min(scale,vp->new_metrics->v[i]); in update_viterbi615_blk_av()
245 vp->new_metrics->v[i] = vec_subs(vp->new_metrics->v[i],scale); in update_viterbi615_blk_av()
251 tmp = vp->old_metrics; in update_viterbi615_blk_av()
252 vp->old_metrics = vp->new_metrics; in update_viterbi615_blk_av()
253 vp->new_metrics = tmp; in update_viterbi615_blk_av()
255 vp->dp = d; in update_viterbi615_blk_av()