Lines Matching refs:vp
29 struct v615 *vp = p; in init_viterbi615_sse2() local
35 vp->metrics1.s[i] = (SHRT_MIN+5000); in init_viterbi615_sse2()
37 vp->old_metrics = &vp->metrics1; in init_viterbi615_sse2()
38 vp->new_metrics = &vp->metrics2; in init_viterbi615_sse2()
39 vp->dp = vp->decisions; in init_viterbi615_sse2()
40 vp->old_metrics->s[starting_state & 16383] = SHRT_MIN; /* Bias known start state */ in init_viterbi615_sse2()
47 struct v615 *vp; in create_viterbi615_sse2() local
58 vp = (struct v615 *)p; in create_viterbi615_sse2()
60 free(vp); in create_viterbi615_sse2()
63 vp->decisions = (decision_t *)p; in create_viterbi615_sse2()
64 init_viterbi615_sse2(vp,0); in create_viterbi615_sse2()
65 return vp; in create_viterbi615_sse2()
85 struct v615 *vp = p; in chainback_viterbi615_sse2() local
86 decision_t *d = (decision_t *)vp->decisions; in chainback_viterbi615_sse2()
107 struct v615 *vp = p; in delete_viterbi615_sse2() local
109 if(vp != NULL){ in delete_viterbi615_sse2()
110 free(vp->decisions); in delete_viterbi615_sse2()
111 free(vp); in delete_viterbi615_sse2()
117 struct v615 *vp = p; in update_viterbi615_blk_sse2() local
118 decision_t *d = (decision_t *)vp->dp; in update_viterbi615_blk_sse2()
150 m0 = _mm_adds_epi16(vp->old_metrics->v[i],metric); in update_viterbi615_blk_sse2()
151 m3 = _mm_adds_epi16(vp->old_metrics->v[1024+i],metric); in update_viterbi615_blk_sse2()
152 m1 = _mm_adds_epi16(vp->old_metrics->v[1024+i],m_metric); in update_viterbi615_blk_sse2()
153 m2 = _mm_adds_epi16(vp->old_metrics->v[i],m_metric); in update_viterbi615_blk_sse2()
165 vp->new_metrics->v[2*i] = _mm_unpacklo_epi16(survivor0,survivor1); in update_viterbi615_blk_sse2()
166 vp->new_metrics->v[2*i+1] = _mm_unpackhi_epi16(survivor0,survivor1); in update_viterbi615_blk_sse2()
171 if(vp->new_metrics->s[0] >= SHRT_MAX-12750){ in update_viterbi615_blk_sse2()
177 adjustv = vp->new_metrics->v[0]; in update_viterbi615_blk_sse2()
179 adjustv = _mm_min_epi16(adjustv,vp->new_metrics->v[i]); in update_viterbi615_blk_sse2()
192 vp->new_metrics->v[i] = _mm_sub_epi16(vp->new_metrics->v[i],adjustv); in update_viterbi615_blk_sse2()
196 tmp = vp->old_metrics; in update_viterbi615_blk_sse2()
197 vp->old_metrics = vp->new_metrics; in update_viterbi615_blk_sse2()
198 vp->new_metrics = tmp; in update_viterbi615_blk_sse2()
200 vp->dp = d; in update_viterbi615_blk_sse2()