diff costablegen.c @ 10407:57acce8b1380 libavcodec

Move/add COSTABLE/SINTABLE macros to dsputil to add extern definitions for ff_cos_* and ff_sin_* without introducing too much code duplication.
author reimar
date Thu, 15 Oct 2009 17:55:51 +0000
parents 866dffa620d1
children 8fd8f6c1cdcc
line wrap: on
line diff
--- a/costablegen.c	Thu Oct 15 17:19:07 2009 +0000
+++ b/costablegen.c	Thu Oct 15 17:55:51 2009 +0000
@@ -37,7 +37,7 @@
     for (i = 4; i <= BITS; i++) {
         int m = 1 << i;
         double freq = 2*M_PI/m;
-        printf("const DECLARE_ALIGNED_16(FFTSample, ff_cos_%i[]) = {\n   ", m);
+        printf("COSTABLE(%i) = {\n   ", m);
         for (j = 0; j < m/2 - 1; j++) {
             int idx = j > m/4 ? m/2 - j : j;
             printf(" "FLOATFMT",", cos(idx*freq));