mpir/fft/fft_tuning.h

40 lines
692 B
C
Raw Normal View History

2012-01-06 13:37:11 -05:00
/* fft_tuning.h -- autogenerated by tune-fft */
2012-01-05 11:52:14 -05:00
#ifndef FFT_TUNING_H
#define FFT_TUNING_H
#include "mpir.h"
#include "gmp-impl.h"
#ifndef FFT_TAB /* check if we already have tuning values */
2012-01-05 11:52:14 -05:00
#if GMP_LIMB_BITS == 64
2012-01-06 13:37:11 -05:00
#define FFT_TAB \
2012-01-10 09:18:43 -05:00
{ { 4, 3 }, { 4, 2 }, { 3, 2 }, { 2, 1 }, { 1, 0 } }
2012-01-05 11:52:14 -05:00
#define MULMOD_TAB \
2012-01-10 09:18:43 -05:00
{ 4, 4, 4, 4, 4, 3, 3, 3, 3, 2, 2, 2, 3, 2, 2, 2, 2, 1, 1 }
#define FFT_N_NUM 19
2012-01-05 11:52:14 -05:00
2012-01-06 13:37:11 -05:00
#define FFT_MULMOD_2EXPP1_CUTOFF 128
2012-01-05 11:52:14 -05:00
#else /* 32 bits */
#define FFT_TAB \
{ { 3, 3 }, { 3, 2 }, { 2, 1 }, { 2, 1 }, { 0, 0 } }
#define MULMOD_TAB \
{ 4, 3, 3, 3, 3, 2, 2, 2, 3, 2, 2, 2, 2, 1, 1 }
#define FFT_N_NUM 15
#define FFT_MULMOD_2EXPP1_CUTOFF 256
#endif
#endif
#endif