simpler code, similar results
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Tue, 25 Apr 2006 12:32:04 +0000 (12:32 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Tue, 25 Apr 2006 12:32:04 +0000 (12:32 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@11276 0101bb08-14d6-0310-b084-bc0e0c8e3800

libspeex/filters.c

index 70ea0cb..cc62d66 100644 (file)
@@ -786,8 +786,8 @@ char *stack
    {
       c1=c2=0;
    }
-   g1 = c1/pow(1-pgain1*pgain1, c2);
-   g2 = c1/pow(1-pgain2*pgain2, c2);
+   g1 = c1/(1-c2*pgain1*pgain1);
+   g2 = c1/(1-c2*pgain2*pgain2);
    if (g1>1)
       g1 = 1;
    if (g2 > 1)