search for: best_dist

Displaying 3 results from an estimated 3 matches for "best_dist".

2004 Aug 06
2
patch for libspeex
...--- speex/libspeex/vq.c 2002-12-14 13:53:57.000000000 +0800 +++ speexme/libspeex/vq.c 2002-12-14 13:53:10.000000000 +0800 @@ -59,7 +59,8 @@ /*Finds the indices of the n-best entries in a codebook*/ void vq_nbest(float *in, float *codebook, int len, int entries, float *E, int N, int *nbest, float *best_dist) { - int i,j,k; + int i,j,k,used; + used = 0; for (i=0;i<entries;i++) { float dist=.5*E[i]; @@ -67,21 +68,14 @@ dist -= in[j]**codebook++; if (i<N || dist<best_dist[N-1]) { - - for (j=0;j<N;j++) + for (k=N-1; (k >= 1) &amp...
2011 Aug 02
1
Compile Speex for Blackfin in VisualDsp
...';' ?Previous errors prevent assembly Assembler totals: 9 error(s) and 0 warning(s) cc3089: fatal error: Assembler failed Tool failed with exit/exception code: 1. Build was unsuccessful. ? ? ? ?void vq_nbest(i16 *in, const i16 *codebook, int len, int entries, i32 *E, int N, int *nbest, i32 *best_dist, i8 *stack) { if (N == 1) { best_dist[0] = 2147483647; { i32 dist; __asm__ __volatile__ ( "LC0 = %8;\n\t" "R2 = 0;\n\t" "I0 = %6;\n\t" "B0 = %6;\n\t" "L0 = %9;\n\t" "LOOP entries_loop%= LC0;\n\t" "LOOP_BEGIN entries_loop%=;\n\t"...
2009 Apr 24
2
[PATCH] Blackfin: cleanup astat/cc/hardware loop asm clobbers
...ANT #ifdef OVERRIDE_LSP_QUANT +#include "bfin.h" + /* Note http://gcc.gnu.org/onlinedocs/gcc/Machine-Constraints.html well tell you all the magic resgister constraints used below @@ -84,7 +86,8 @@ static int lsp_quant( " L0 = 0;\n\t" : "=&d" (best_dist), "=&d" (best_id) : "a" (x), "b" (cdbk), "a" (nbVec), "a" (nbDim) - : "I0", "P2", "R0", "R1", "R2", "R3", "R5", "L0", "B0", "A0" + : &quo...