Lines Matching refs:vp

29   struct v39 *vp = p;  in init_viterbi39_sse()  local
35 vp->metrics1.s[i] = (SHRT_MIN+1000); in init_viterbi39_sse()
37 vp->old_metrics = &vp->metrics1; in init_viterbi39_sse()
38 vp->new_metrics = &vp->metrics2; in init_viterbi39_sse()
39 vp->dp = vp->decisions; in init_viterbi39_sse()
40 vp->old_metrics->s[starting_state & 255] = SHRT_MIN; /* Bias known start state */ in init_viterbi39_sse()
46 struct v39 *vp; in create_viterbi39_sse() local
53 if((vp = (struct v39 *)malloc(sizeof(struct v39))) == NULL){ in create_viterbi39_sse()
56 if((vp->decisions = malloc((len+8)*sizeof(decision_t))) == NULL){ in create_viterbi39_sse()
57 free(vp); in create_viterbi39_sse()
60 init_viterbi39_sse(vp,0); in create_viterbi39_sse()
61 return vp; in create_viterbi39_sse()
81 struct v39 *vp = p; in chainback_viterbi39_sse() local
87 d = (decision_t *)vp->decisions; in chainback_viterbi39_sse()
90 path_metric = vp->old_metrics->s[endstate]; in chainback_viterbi39_sse()
110 struct v39 *vp = p; in delete_viterbi39_sse() local
112 if(vp != NULL){ in delete_viterbi39_sse()
113 free(vp->decisions); in delete_viterbi39_sse()
114 free(vp); in delete_viterbi39_sse()
120 struct v39 *vp = p; in update_viterbi39_blk_sse() local
126 d = (decision_t *)vp->dp; in update_viterbi39_blk_sse()
151 m0 = _mm_adds_pi16(vp->old_metrics->v[i],metric); in update_viterbi39_blk_sse()
152 m3 = _mm_adds_pi16(vp->old_metrics->v[32+i],metric); in update_viterbi39_blk_sse()
153 m1 = _mm_adds_pi16(vp->old_metrics->v[32+i],m_metric); in update_viterbi39_blk_sse()
154 m2 = _mm_adds_pi16(vp->old_metrics->v[i],m_metric); in update_viterbi39_blk_sse()
166 vp->new_metrics->v[2*i] = _mm_unpacklo_pi16(survivor0,survivor1); in update_viterbi39_blk_sse()
167 vp->new_metrics->v[2*i+1] = _mm_unpackhi_pi16(survivor0,survivor1); in update_viterbi39_blk_sse()
172 if(vp->new_metrics->s[0] >= SHRT_MAX-5000){ in update_viterbi39_blk_sse()
178 adjustv = vp->new_metrics->v[0]; in update_viterbi39_blk_sse()
180 adjustv = _mm_min_pi16(adjustv,vp->new_metrics->v[i]); in update_viterbi39_blk_sse()
190 vp->new_metrics->v[i] = _mm_sub_pi16(vp->new_metrics->v[i],adjustv); in update_viterbi39_blk_sse()
194 tmp = vp->old_metrics; in update_viterbi39_blk_sse()
195 vp->old_metrics = vp->new_metrics; in update_viterbi39_blk_sse()
196 vp->new_metrics = tmp; in update_viterbi39_blk_sse()
198 vp->dp = d; in update_viterbi39_blk_sse()