Lines Matching refs:vp
28 struct v39 *vp = p; in init_viterbi39_mmx() local
34 vp->metrics1.s[i] = 1000; in init_viterbi39_mmx()
36 vp->old_metrics = &vp->metrics1; in init_viterbi39_mmx()
37 vp->new_metrics = &vp->metrics2; in init_viterbi39_mmx()
38 vp->dp = vp->decisions; in init_viterbi39_mmx()
39 vp->old_metrics->s[starting_state & 255] = 0; /* Bias known start state */ in init_viterbi39_mmx()
56 struct v39 *vp; in create_viterbi39_mmx() local
62 if((vp = (struct v39 *)malloc(sizeof(struct v39))) == NULL) in create_viterbi39_mmx()
64 if((vp->decisions = malloc((len+8)*sizeof(decision_t))) == NULL){ in create_viterbi39_mmx()
65 free(vp); in create_viterbi39_mmx()
68 init_viterbi39_mmx(vp,0); in create_viterbi39_mmx()
69 return vp; in create_viterbi39_mmx()
80 struct v39 *vp = p; in chainback_viterbi39_mmx() local
87 d = (decision_t *)vp->decisions; in chainback_viterbi39_mmx()
91 path_metric = vp->old_metrics->s[endstate]; in chainback_viterbi39_mmx()
110 struct v39 *vp = p; in delete_viterbi39_mmx() local
112 if(vp != NULL){ in delete_viterbi39_mmx()
113 free(vp->decisions); in delete_viterbi39_mmx()
114 free(vp); in delete_viterbi39_mmx()
120 struct v39 *vp = p; in update_viterbi39_blk_mmx() local
127 d = (decision_t *)vp->dp; in update_viterbi39_blk_mmx()
153 m0 = _mm_add_pi16(vp->old_metrics->v[i],metric); in update_viterbi39_blk_mmx()
154 m3 = _mm_add_pi16(vp->old_metrics->v[32+i],metric); in update_viterbi39_blk_mmx()
155 m1 = _mm_add_pi16(vp->old_metrics->v[32+i],m_metric); in update_viterbi39_blk_mmx()
156 m2 = _mm_add_pi16(vp->old_metrics->v[i],m_metric); in update_viterbi39_blk_mmx()
171 vp->new_metrics->v[2*i] = _mm_unpacklo_pi16(survivor0,survivor1); in update_viterbi39_blk_mmx()
172 vp->new_metrics->v[2*i+1] = _mm_unpackhi_pi16(survivor0,survivor1); in update_viterbi39_blk_mmx()
174 if(vp->new_metrics->s[0] < vp->old_metrics->s[0]) in update_viterbi39_blk_mmx()
178 tmp = vp->old_metrics; in update_viterbi39_blk_mmx()
179 vp->old_metrics = vp->new_metrics; in update_viterbi39_blk_mmx()
180 vp->new_metrics = tmp; in update_viterbi39_blk_mmx()
182 vp->dp = d; in update_viterbi39_blk_mmx()