Lines Matching full:dist
82 spx_word32_t dist=0; in vq_nbest() local
84 dist = MAC16_16(dist,in[j],*codebook++); in vq_nbest()
86 dist=SUB32(SHR32(E[i],1),dist); in vq_nbest()
88 dist=.5f*E[i]-dist; in vq_nbest()
90 if (i<N || dist<best_dist[N-1]) in vq_nbest()
92 for (k=N-1; (k >= 1) && (k > used || dist < best_dist[k-1]); k--) in vq_nbest()
97 best_dist[k]=dist; in vq_nbest()
116 spx_word32_t dist=0; in vq_nbest_sign() local
118 dist = MAC16_16(dist,in[j],*codebook++); in vq_nbest_sign()
119 if (dist>0) in vq_nbest_sign()
122 dist=-dist; in vq_nbest_sign()
128 dist = ADD32(dist,SHR32(E[i],1)); in vq_nbest_sign()
130 dist = ADD32(dist,.5f*E[i]); in vq_nbest_sign()
132 if (i<N || dist<best_dist[N-1]) in vq_nbest_sign()
134 for (k=N-1; (k >= 1) && (k > used || dist < best_dist[k-1]); k--) in vq_nbest_sign()
139 best_dist[k]=dist; in vq_nbest_sign()