Lines Matching refs:vp

29   struct v39 *vp = p;  in init_viterbi39_sse2()  local
33 vp->metrics1.s[i] = (SHRT_MIN+1000); in init_viterbi39_sse2()
35 vp->old_metrics = &vp->metrics1; in init_viterbi39_sse2()
36 vp->new_metrics = &vp->metrics2; in init_viterbi39_sse2()
37 vp->dp = vp->decisions; in init_viterbi39_sse2()
38 vp->old_metrics->s[starting_state & 255] = SHRT_MIN; /* Bias known start state */ in init_viterbi39_sse2()
45 struct v39 *vp; in create_viterbi39_sse2() local
56 vp = (struct v39 *)p; in create_viterbi39_sse2()
58 free(vp); in create_viterbi39_sse2()
61 vp->decisions = (decision_t *)p; in create_viterbi39_sse2()
62 init_viterbi39_sse2(vp,0); in create_viterbi39_sse2()
63 return vp; in create_viterbi39_sse2()
83 struct v39 *vp = p; in chainback_viterbi39_sse2() local
84 decision_t *d = (decision_t *)vp->decisions; in chainback_viterbi39_sse2()
89 path_metric = vp->old_metrics->s[endstate]; in chainback_viterbi39_sse2()
108 struct v39 *vp = p; in delete_viterbi39_sse2() local
110 if(vp != NULL){ in delete_viterbi39_sse2()
111 free(vp->decisions); in delete_viterbi39_sse2()
112 free(vp); in delete_viterbi39_sse2()
118 struct v39 *vp = p; in update_viterbi39_blk_sse2() local
119 decision_t *d = (decision_t *)vp->dp; in update_viterbi39_blk_sse2()
147 m0 = _mm_adds_epi16(vp->old_metrics->v[i],metric); in update_viterbi39_blk_sse2()
148 m3 = _mm_adds_epi16(vp->old_metrics->v[16+i],metric); in update_viterbi39_blk_sse2()
149 m1 = _mm_adds_epi16(vp->old_metrics->v[16+i],m_metric); in update_viterbi39_blk_sse2()
150 m2 = _mm_adds_epi16(vp->old_metrics->v[i],m_metric); in update_viterbi39_blk_sse2()
162 vp->new_metrics->v[2*i] = _mm_unpacklo_epi16(survivor0,survivor1); in update_viterbi39_blk_sse2()
163 vp->new_metrics->v[2*i+1] = _mm_unpackhi_epi16(survivor0,survivor1); in update_viterbi39_blk_sse2()
166 if(vp->new_metrics->s[0] >= SHRT_MAX-5000){ in update_viterbi39_blk_sse2()
172 adjustv = vp->new_metrics->v[0]; in update_viterbi39_blk_sse2()
174 adjustv = _mm_min_epi16(adjustv,vp->new_metrics->v[i]); in update_viterbi39_blk_sse2()
188 vp->new_metrics->v[i] = _mm_sub_epi16(vp->new_metrics->v[i],adjustv); in update_viterbi39_blk_sse2()
192 tmp = vp->old_metrics; in update_viterbi39_blk_sse2()
193 vp->old_metrics = vp->new_metrics; in update_viterbi39_blk_sse2()
194 vp->new_metrics = tmp; in update_viterbi39_blk_sse2()
196 vp->dp = d; in update_viterbi39_blk_sse2()