[Freeswitch-branches] [commit] r11453 - freeswitch/branches/1.0/libs/libg722_1/src

FreeSWITCH SVN mikej at freeswitch.org
Thu Jan 22 17:12:00 PST 2009


Author: mikej
Date: Thu Jan 22 19:12:00 2009
New Revision: 11453

Log:
libg722_1: fix dct4.h code generator to include the "f" (r:11188-11189,11367)

Removed:
   freeswitch/branches/1.0/libs/libg722_1/src/dct4.h
Modified:
   freeswitch/branches/1.0/libs/libg722_1/src/make_dct4_tables.c

Modified: freeswitch/branches/1.0/libs/libg722_1/src/make_dct4_tables.c
==============================================================================
--- freeswitch/branches/1.0/libs/libg722_1/src/make_dct4_tables.c	(original)
+++ freeswitch/branches/1.0/libs/libg722_1/src/make_dct4_tables.c	Thu Jan 22 19:12:00 2009
@@ -44,10 +44,10 @@
     for (index = 0;  index < length - 1;  index++)
     {
         angle = scale*((double) index + 0.5);
-        printf("    {%.15e, %.15e},\n", cos(angle), -sin(angle));
+        printf("    {%.15ef, %.15ef},\n", cos(angle), -sin(angle));
     }
     angle = scale*((double) index + 0.5);
-    printf("    {%.15e, %.15e}\n", cos(angle), -sin(angle));
+    printf("    {%.15ef, %.15ef}\n", cos(angle), -sin(angle));
     printf("};\n\n");
 }
 /*- End of function --------------------------------------------------------*/
@@ -76,7 +76,7 @@
     {
         for (i = 0;  i < 10;  ++i)
         {
-            printf("    %22.15e%s\n",
+            printf("    %22.15ef%s\n",
                    cos(PI*(k + 0.5) * (i + 0.5)/10.0)*scale,
                    (k == 9  &&  i == 9)  ?  ""  :  ",");
         }
@@ -90,7 +90,7 @@
     {
         for (i = 0;  i < 10;  ++i)
         {
-            printf("    %22.15e%s\n",
+            printf("    %22.15ef%s\n",
                    cos(PI*(k + 0.5) * (i + 0.5)/10.0)*scale,
                    (k == 9  &&  i == 9)  ?  ""  :  ",");
         }



More information about the Freeswitch-branches mailing list