]> git.sesse.net Git - fjl/blobdiff - idct.c
+static
[fjl] / idct.c
diff --git a/idct.c b/idct.c
index 056f4517aa8b5dd1983fe1f112109251585802f2..b187a90c07996b4af5e8a6cd0ba5d954688b4293 100644 (file)
--- a/idct.c
+++ b/idct.c
@@ -60,11 +60,11 @@ static const double scalefac[] = {
 static inline void idct1d_float(double y0, double y1, double y2, double y3, double y4, double y5, double y6, double y7, double *x)
 {
        // constants
-       const double a1 = 0.7071067811865474;   // sqrt(2)
-       const double a2 = 0.5411961001461971;   // cos(3/8 pi) * sqrt(2)
-       const double a3 = a1;
-       const double a4 = 1.3065629648763766;   // cos(pi/8) * sqrt(2)
-       const double a5 = 0.5 * (a4 - a2);
+       static const double a1 = 0.7071067811865474;   // sqrt(2)
+       static const double a2 = 0.5411961001461971;   // cos(3/8 pi) * sqrt(2)
+       static const double a3 = a1;
+       static const double a4 = 1.3065629648763766;   // cos(pi/8) * sqrt(2)
+       static const double a5 = 0.5 * (a4 - a2);
 
        // phase 1
        const double p1_0 = y0 * scalefac[0];