Mercurial > libavcodec.hg
diff dsputil.h @ 10408:8fd8f6c1cdcc libavcodec
Add support for hardcoded ff_sin_* tables.
author | reimar |
---|---|
date | Thu, 15 Oct 2009 18:04:55 +0000 |
parents | 57acce8b1380 |
children | 442ab0c41eae |
line wrap: on
line diff
--- a/dsputil.h Thu Oct 15 17:55:51 2009 +0000 +++ b/dsputil.h Thu Oct 15 18:04:55 2009 +0000 @@ -744,14 +744,16 @@ #if CONFIG_HARDCODED_TABLES #define COSTABLE_CONST const +#define SINTABLE_CONST const #else #define COSTABLE_CONST +#define SINTABLE_CONST #endif #define COSTABLE(size) \ COSTABLE_CONST DECLARE_ALIGNED_16(FFTSample, ff_cos_##size[size/2]) #define SINTABLE(size) \ - DECLARE_ALIGNED_16(FFTSample, ff_sin_##size[size/2]) + SINTABLE_CONST DECLARE_ALIGNED_16(FFTSample, ff_sin_##size[size/2]) extern COSTABLE(16); extern COSTABLE(32); extern COSTABLE(64); @@ -874,7 +876,7 @@ /* pre/post rotation tables */ const FFTSample *tcos; - FFTSample *tsin; + SINTABLE_CONST FFTSample *tsin; FFTContext fft; } RDFTContext;