fixed-point: removed some float's in innovation search
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Wed, 8 Oct 2003 04:50:44 +0000 (04:50 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Wed, 8 Oct 2003 04:50:44 +0000 (04:50 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@5428 0101bb08-14d6-0310-b084-bc0e0c8e3800

libspeex/cb_search.c
libspeex/smallft.c

index d7b5560..b48c5a7 100644 (file)
@@ -178,7 +178,7 @@ int   complexity
          for (k=0;k<N;k++)
          {
             spx_word16_t *ct;
-            float err=0;
+            spx_word32_t err=0;
             ct = ot[j];
             /*update target*/
 
@@ -190,7 +190,7 @@ int   complexity
             {
                int rind;
                spx_word16_t *res;
-               float sign=1;
+               spx_word16_t sign=1;
                rind = best_index[k];
                if (rind>=shape_cb_size)
                {
@@ -222,7 +222,7 @@ int   complexity
                {
                   spx_word16_t g;
                   int rind;
-                  float sign=1;
+                  spx_word16_t sign=1;
                   rind = best_index[k];
                   if (rind>=shape_cb_size)
                   {
@@ -366,7 +366,7 @@ char *stack
    /* Compute decoded excitation */
    for (i=0;i<nb_subvect;i++)
    {
-      float s=1;
+      spx_word16_t s=1;
       if (signs[i])
          s=-1;
 #ifdef FIXED_POINT
index 3e77d39..75b5276 100644 (file)
@@ -11,7 +11,7 @@
  ********************************************************************
 
  function: *unnormalized* fft transform
- last mod: $Id: smallft.c,v 1.8 2003/10/08 04:49:37 jm Exp $
+ last mod: $Id: smallft.c,v 1.9 2003/10/08 04:50:44 jm Exp $
 
  ********************************************************************/