diff decoders/speex.c @ 454:6bd7ca7d218b

Took out a C++-style comment.
author Ryan C. Gordon <icculus@icculus.org>
date Sat, 13 Sep 2003 20:46:09 +0000
parents 573eaefef003
children 1841bdcf2122 50bb9a6cebfe
line wrap: on
line diff
--- a/decoders/speex.c	Sat Sep 13 20:35:24 2003 +0000
+++ b/decoders/speex.c	Sat Sep 13 20:46:09 2003 +0000
@@ -320,14 +320,13 @@
 
     for (max = dst + maxoutput; dst < max; dst++, src++)
     {
+        /* !!! FIXME: This screams for vectorization. */
         register float f = *src;
         if (f > 32000.0f)  /* eh, speexdec.c clamps like this, too. */
             f = 32000.0f;
         else if (f < -32000.0f)
             f = -32000.0f;
-        *dst = //(Sint16) round(f);
-               // (Sint16) floor(.5f+f);
-               (Sint16) 0.5f+f;
+        *dst = (Sint16) (0.5f + f);
     } /* for */
     
     return(cpypos << 1);