From: Steinar H. Gunderson Date: Fri, 9 Jan 2009 20:14:57 +0000 (+0100) Subject: +static X-Git-Url: https://git.sesse.net/?p=fjl;a=commitdiff_plain;h=d9094db36b7a3a62fec5cbc0f0d22ca80d6923d4 +static --- diff --git a/idct.c b/idct.c index 056f451..b187a90 100644 --- 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];