[xiph-cvs] cvs commit: speex/libspeex cb_search.c smallft.c

Jean-Marc Valin jm at xiph.org
Tue Oct 7 21:50:44 PDT 2003



jm          03/10/08 00:50:44

  Modified:    libspeex cb_search.c smallft.c
  Log:
  fixed-point: removed some float's in innovation search

Revision  Changes    Path
1.95      +4 -4      speex/libspeex/cb_search.c

Index: cb_search.c
===================================================================
RCS file: /usr/local/cvsroot/speex/libspeex/cb_search.c,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -r1.94 -r1.95
--- cb_search.c	8 Oct 2003 04:49:37 -0000	1.94
+++ cb_search.c	8 Oct 2003 04:50:44 -0000	1.95
@@ -178,7 +178,7 @@
          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 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 @@
                {
                   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 @@
    /* 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

<p><p>1.9       +0 -0      speex/libspeex/smallft.c

Index: smallft.c
===================================================================
RCS file: /usr/local/cvsroot/speex/libspeex/smallft.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- smallft.c	8 Oct 2003 04:49:37 -0000	1.8
+++ smallft.c	8 Oct 2003 04:50:44 -0000	1.9
@@ -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 $
 
  ********************************************************************/
 

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list