Lines Matching refs:vp
29 struct v615 *vp = p; in init_viterbi615_sse() local
35 vp->metrics1.s[i] = (SHRT_MIN+5000); in init_viterbi615_sse()
37 vp->old_metrics = &vp->metrics1; in init_viterbi615_sse()
38 vp->new_metrics = &vp->metrics2; in init_viterbi615_sse()
39 vp->dp = vp->decisions; in init_viterbi615_sse()
40 vp->old_metrics->s[starting_state & 16383] = SHRT_MIN; /* Bias known start state */ in init_viterbi615_sse()
46 struct v615 *vp; in create_viterbi615_sse() local
53 if((vp = (struct v615 *)malloc(sizeof(struct v615))) == NULL){ in create_viterbi615_sse()
56 if((vp->decisions = malloc((len+14)*sizeof(decision_t))) == NULL){ in create_viterbi615_sse()
57 free(vp); in create_viterbi615_sse()
60 init_viterbi615_sse(vp,0); in create_viterbi615_sse()
61 return vp; in create_viterbi615_sse()
81 struct v615 *vp = p; in chainback_viterbi615_sse() local
86 d = (decision_t *)vp->decisions; in chainback_viterbi615_sse()
107 struct v615 *vp = p; in delete_viterbi615_sse() local
109 if(vp != NULL){ in delete_viterbi615_sse()
110 free(vp->decisions); in delete_viterbi615_sse()
111 free(vp); in delete_viterbi615_sse()
117 struct v615 *vp = p; in update_viterbi615_blk_sse() local
122 d = (decision_t *)vp->dp; in update_viterbi615_blk_sse()
152 m0 = _mm_adds_pi16(vp->old_metrics->v[i],metric); in update_viterbi615_blk_sse()
153 m3 = _mm_adds_pi16(vp->old_metrics->v[2048+i],metric); in update_viterbi615_blk_sse()
154 m1 = _mm_adds_pi16(vp->old_metrics->v[2048+i],m_metric); in update_viterbi615_blk_sse()
155 m2 = _mm_adds_pi16(vp->old_metrics->v[i],m_metric); in update_viterbi615_blk_sse()
167 vp->new_metrics->v[2*i] = _mm_unpacklo_pi16(survivor0,survivor1); in update_viterbi615_blk_sse()
168 vp->new_metrics->v[2*i+1] = _mm_unpackhi_pi16(survivor0,survivor1); in update_viterbi615_blk_sse()
173 if(vp->new_metrics->s[0] >= SHRT_MAX-12750){ in update_viterbi615_blk_sse()
179 adjustv = vp->new_metrics->v[0]; in update_viterbi615_blk_sse()
181 adjustv = _mm_min_pi16(adjustv,vp->new_metrics->v[i]); in update_viterbi615_blk_sse()
190 vp->new_metrics->v[i] = _mm_sub_pi16(vp->new_metrics->v[i],adjustv); in update_viterbi615_blk_sse()
194 tmp = vp->old_metrics; in update_viterbi615_blk_sse()
195 vp->old_metrics = vp->new_metrics; in update_viterbi615_blk_sse()
196 vp->new_metrics = tmp; in update_viterbi615_blk_sse()
198 vp->dp = d; in update_viterbi615_blk_sse()