]> git.sesse.net Git - qscale/commitdiff
Make the cutoff constant really constant.
authorsgunderson@bigfoot.com <>
Sun, 3 Feb 2008 16:32:48 +0000 (17:32 +0100)
committersgunderson@bigfoot.com <>
Sun, 3 Feb 2008 16:32:48 +0000 (17:32 +0100)
qscale.c

index 1b3ab57c0b9bd20a76785d66caac745b445a774c..54985cc7e6beb47640cbd5fc6c64eac7e26487d7 100644 (file)
--- a/qscale.c
+++ b/qscale.c
@@ -9,8 +9,7 @@
 
 double sinc(double x)
 {
-       static const double eps = 2.22045e-016;
-       static const double cutoff = sqrt(sqrt(eps));
+       static const double cutoff = 1.220703668e-4;  // sqrt(sqrt(eps))
 
        if (abs(x) < cutoff) {
                // For small |x|, use Taylor series instead