[xiph-commits] r9368 - trunk/speex/libspeex

jm at motherfish-iii.xiph.org jm at motherfish-iii.xiph.org
Sun Jun 5 23:21:11 PDT 2005


Author: jm
Date: 2005-06-05 23:21:10 -0700 (Sun, 05 Jun 2005)
New Revision: 9368

Modified:
   trunk/speex/libspeex/vq_bfin.h
Log:
oops


Modified: trunk/speex/libspeex/vq_bfin.h
===================================================================
--- trunk/speex/libspeex/vq_bfin.h	2005-06-06 05:22:32 UTC (rev 9367)
+++ trunk/speex/libspeex/vq_bfin.h	2005-06-06 06:21:10 UTC (rev 9368)
@@ -36,10 +36,12 @@
 {
    if (N==1)
    {
+      int i;
       best_dist[0] = 2147483647;
-      spx_word32_t dist;
-      __asm__ __volatile__
-         (
+      {
+         spx_word32_t dist;
+         __asm__ __volatile__
+               (
             "LC0 = %8;\n\t"
             "R2 = 0;\n\t"
             "LOOP entries_loop%= LC0;\n\t"
@@ -50,7 +52,7 @@
                "I0 = %6;\n\t"
                "L0 = 0;\n\t"
                "R0.L = W[%1++%7] || R1.L = W[I0++];\n\t"
-               "LOOP vq_loop%= LC0 = %5;\n\t"
+               "LOOP vq_loop%= LC1 = %5;\n\t"
                "LOOP_BEGIN vq_loop%=;\n\t"
                   "%0 = (A0 -= R0.L*R1.L) (IS) || R0.L = W[%1++%7] || R1.L = W[I0++];\n\t"
                "LOOP_END vq_loop%=;\n\t"
@@ -60,10 +62,11 @@
                "if cc %3 = R2;\n\t"
                "R2 += 1;\n\t"
             "LOOP_END entries_loop%=;\n\t"
-            : "=D" (dist), "=a" (codebook), "=d" (best_dist[0]), "=d" (nbest[0]), "=a" (E)
+            : "=&D" (dist), "=&a" (codebook), "=&d" (best_dist[0]), "=&d" (nbest[0]), "=&a" (E)
             : "a" (len-1), "a" (in), "a" (2), "d" (entries), "1" (codebook), "4" (E), "2" (best_dist[0]), "3" (nbest[0])
             : "R0", "R1", "R2", "I0", "L0", "A0", "cc", "memory"
-         );
+               );
+      }
    } else {
    int i,k,used;
    used = 0;



More information about the commits mailing list