*/
#define FFT_FLOAT 0
-#define CONFIG_FFT_FIXED_32 1
+#define FFT_FIXED_32 1
#include "fft-test.c"
#define SCALE_FLOAT(a, bits) lrint((a) * (double)(1 << (bits)))
-#if CONFIG_FFT_FIXED_32
+#if FFT_FIXED_32
#define CMUL(dre, dim, are, aim, bre, bim) do { \
int64_t accu; \
#define FIX15(a) av_clip(SCALE_FLOAT(a, 31), -2147483647, 2147483647)
-#else /* CONFIG_FFT_FIXED_32 */
+#else /* FFT_FIXED_32 */
#include "fft.h"
#include "mathops.h"
#define CMULL(dre, dim, are, aim, bre, bim) \
CMULS(dre, dim, are, aim, bre, bim, 0)
-#endif /* CONFIG_FFT_FIXED_32 */
+#endif /* FFT_FIXED_32 */
#endif /* FFT_FLOAT */
# define RANGE 1.0
# define REF_SCALE(x, bits) (x)
# define FMT "%10.6f"
-#elif CONFIG_FFT_FIXED_32
+#elif FFT_FIXED_32
# define RANGE 8388608
# define REF_SCALE(x, bits) (x)
# define FMT "%6d"
#define FFT_FLOAT 1
#endif
-#ifndef CONFIG_FFT_FIXED_32
-#define CONFIG_FFT_FIXED_32 0
+#ifndef FFT_FIXED_32
+#define FFT_FIXED_32 0
#endif
#include <stdint.h>
#else
-#if CONFIG_FFT_FIXED_32
+#if FFT_FIXED_32
#define Q31(x) (int)((x)*2147483648.0 + 0.5)
#define FFT_NAME(x) x ## _fixed_32
typedef int32_t FFTSample;
-#else /* CONFIG_FFT_FIXED_32 */
+#else /* FFT_FIXED_32 */
#define FFT_NAME(x) x ## _fixed
typedef int16_t FFTSample;
-#endif /* CONFIG_FFT_FIXED_32 */
+#endif /* FFT_FIXED_32 */
typedef struct FFTComplex {
FFTSample re, im;
*/
#define FFT_FLOAT 0
-#define CONFIG_FFT_FIXED_32 0
+#define FFT_FIXED_32 0
#include "fft_template.c"
*/
#define FFT_FLOAT 0
-#define CONFIG_FFT_FIXED_32 1
+#define FFT_FIXED_32 1
#include "fft_template.c"
*/
#define FFT_FLOAT 1
-#define CONFIG_FFT_FIXED_32 0
+#define FFT_FIXED_32 0
#include "fft_template.c"
#include "fft.h"
#include "fft-internal.h"
-#if CONFIG_FFT_FIXED_32
+#if FFT_FIXED_32
#include "fft_table.h"
-#else /* CONFIG_FFT_FIXED_32 */
+#else /* FFT_FIXED_32 */
/* cos(2*pi*x/n) for 0<=x<=n/4, followed by its reverse */
#if !CONFIG_HARDCODED_TABLES
FFT_NAME(ff_cos_65536),
};
-#endif /* CONFIG_FFT_FIXED_32 */
+#endif /* FFT_FIXED_32 */
static void fft_permute_c(FFTContext *s, FFTComplex *z);
static void fft_calc_c(FFTContext *s, FFTComplex *z);
av_cold void ff_init_ff_cos_tabs(int index)
{
-#if (!CONFIG_HARDCODED_TABLES) && (!CONFIG_FFT_FIXED_32)
+#if (!CONFIG_HARDCODED_TABLES) && (!FFT_FIXED_32)
int i;
int m = 1<<index;
double freq = 2*M_PI/m;
s->mdct_calc = ff_mdct_calc_c;
#endif
-#if CONFIG_FFT_FIXED_32
+#if FFT_FIXED_32
{
int n=0;
ff_fft_lut_init(fft_offsets_lut, 0, 1 << 16, &n);
}
-#else /* CONFIG_FFT_FIXED_32 */
+#else /* FFT_FIXED_32 */
#if FFT_FLOAT
if (ARCH_ARM) ff_fft_init_arm(s);
if (ARCH_PPC) ff_fft_init_ppc(s);
for(j=4; j<=nbits; j++) {
ff_init_ff_cos_tabs(j);
}
-#endif /* CONFIG_FFT_FIXED_32 */
+#endif /* FFT_FIXED_32 */
if (s->fft_permutation == FF_FFT_PERM_AVX) {
av_freep(&s->tmp_buf);
}
-#if CONFIG_FFT_FIXED_32
+#if FFT_FIXED_32
static void fft_calc_c(FFTContext *s, FFTComplex *z) {
}
}
-#else /* CONFIG_FFT_FIXED_32 */
+#else /* FFT_FIXED_32 */
#define BUTTERFLIES(a0,a1,a2,a3) {\
BF(t3, t5, t5, t1);\
{
fft_dispatch[s->nbits-2](z);
}
-#endif /* CONFIG_FFT_FIXED_32 */
+#endif /* FFT_FIXED_32 */
*/
#define FFT_FLOAT 0
-#define CONFIG_FFT_FIXED_32 0
+#define FFT_FIXED_32 0
#include "mdct_template.c"
/* same as ff_mdct_calcw_c with double-width unscaled output */
*/
#define FFT_FLOAT 0
-#define CONFIG_FFT_FIXED_32 1
+#define FFT_FIXED_32 1
#include "mdct_template.c"
*/
#define FFT_FLOAT 1
-#define CONFIG_FFT_FIXED_32 0
+#define FFT_FIXED_32 0
#include "mdct_template.c"
#if FFT_FLOAT
# define RSCALE(x) (x)
#else
-#if CONFIG_FFT_FIXED_32
+#if FFT_FIXED_32
# define RSCALE(x) (((x) + 32) >> 6)
-#else /* CONFIG_FFT_FIXED_32 */
+#else /* FFT_FIXED_32 */
# define RSCALE(x) ((x) >> 1)
-#endif /* CONFIG_FFT_FIXED_32 */
+#endif /* FFT_FIXED_32 */
#endif
/**