[xiph-commits] r13234 - trunk/ghost/libghost
jm at svn.xiph.org
jm at svn.xiph.org
Fri Jul 6 06:44:36 PDT 2007
Author: jm
Date: 2007-07-06 06:44:36 -0700 (Fri, 06 Jul 2007)
New Revision: 13234
Modified:
trunk/ghost/libghost/sinusoids.c
Log:
Don't divide by a constant
Modified: trunk/ghost/libghost/sinusoids.c
===================================================================
--- trunk/ghost/libghost/sinusoids.c 2007-07-06 13:44:29 UTC (rev 13233)
+++ trunk/ghost/libghost/sinusoids.c 2007-07-06 13:44:36 UTC (rev 13234)
@@ -221,10 +221,10 @@
/* Normalise the basis (should multiply by the inverse instead) */
for (j=0;j<L2;j++)
{
- cos_table[i][j] /= cosE[i];
- sin_table[i][j] /= sinE[i];
- tcos_table[i][j] /= costE[i];
- tsin_table[i][j] /= sintE[i];
+ cos_table[i][j] *= (1.f/cosE[i]);
+ sin_table[i][j] *= (1.f/sinE[i]);
+ tcos_table[i][j] *= (1.f/costE[i]);
+ tsin_table[i][j] *= (1.f/sintE[i]);
}
}
/* y is the initial approximation of the signal */
More information about the commits
mailing list