37 #define NOTW_OPTIMAL_SIZE 32 38 #define TWIDDLE_OPTIMAL_SIZE 12 40 #define IS_POWER_OF_TWO(n) (((n) & ((n) - 1)) == 0) 162 if (size % 2 == 0 || (n / size) % 2 == 0)
163 fftw_die(
"invalid size for rgeneric codelet\n");
195 while (cur && cur != d) {
200 fftw_die(
"invalid Rader data pointer\n");
203 prev->next = d->
next;
205 fftw_rader_top = d->
next;
248 fftw_destroy_rader(p->
nodeu.
rader.rader_data);
269 int wisdom_signature,
285 fftw_die(
"invalid vector-recurse plan attempted\n");
358 destroy_tree(p->
root);
375 this_plan->
next = *table;
383 for (p = *table; p &&
394 for (p = *table; p; p = q) {
477 for (r = 3; r * r <= n; r += 2)
490 fprintf(f,
"%*sFFTW_NOTW %d\n", indent,
"",
494 fprintf(f,
"%*sFFTW_REAL2HC %d\n", indent,
"",
498 fprintf(f,
"%*sFFTW_HC2REAL %d\n", indent,
"",
502 fprintf(f,
"%*sFFTW_TWIDDLE %d\n", indent,
"",
507 fprintf(f,
"%*sFFTW_HC2HC %d\n", indent,
"",
509 print_node(f, p->
nodeu.
hc2hc.recurse, indent);
512 fprintf(f,
"%*sFFTW_GENERIC %d\n", indent,
"",
517 fprintf(f,
"%*sFFTW_RADER %d\n", indent,
"",
520 fprintf(f,
"%*splan for size %d convolution:\n",
522 print_node(f, p->
nodeu.
rader.rader_data->plan->root,
525 print_node(f, p->
nodeu.
rader.recurse, indent);
528 fprintf(f,
"%*sFFTW_RGENERIC %d\n", indent,
"",
539 fprintf(f,
"plan: (cost = %e)\n", p->
cost);
541 fprintf(f,
"(vector recursion)\n");
544 print_node(f, p->
root, 0);
struct fftw_rader_data_struct * next
fftw_twiddle * fftw_create_twiddle(int n, const fftw_codelet_desc *d)
void fftw_fprint_plan(FILE *f, fftw_plan p)
void fftw_complete_twiddle(fftw_plan_node *p, int n)
union fftw_plan_node_struct::@0 nodeu
void( fftw_twiddle_codelet)(fftw_complex *, const fftw_complex *, int, int, int)
void fftw_make_empty_table(fftw_plan *table)
fftw_plan_node * fftw_make_node_hc2hc(int n, fftw_direction dir, const fftw_codelet_desc *config, fftw_plan_node *recurse, int flags)
struct fftw_plan_node_struct::@0::@4 rader
void( fftw_hc2hc_codelet)(fftw_real *, const fftw_complex *, int, int, int)
void( fftw_real2hc_codelet)(const fftw_real *, fftw_real *, fftw_real *, int, int, int)
size_t fftw_sizeof_fftw_real(void)
fftw_plan_node * fftw_make_node_hc2real(int size, const fftw_codelet_desc *config)
struct fftw_plan_struct * next
fftw_plan fftw_lookup(fftw_plan *table, int n, int flags, int vector_size)
void fftw_die(const char *s)
void fftw_use_plan(fftw_plan p)
fftw_recurse_kind recurse_kind
struct fftw_plan_struct * plan
void( fftw_generic_codelet)(fftw_complex *, const fftw_complex *, int, int, int, int)
struct fftw_plan_node_struct::@0::@5 real2hc
fftw_notw_codelet * codelet
void( fftw_notw_codelet)(const fftw_complex *, fftw_complex *, int, int)
void( fftw_hc2real_codelet)(const fftw_real *, const fftw_real *, fftw_real *, int, int, int)
fftw_plan fftw_make_plan(int n, fftw_direction dir, fftw_plan_node *root, int flags, enum fftw_node_type wisdom_type, int wisdom_signature, fftw_recurse_kind recurse_kind, int vector_size)
fftw_rader_data * fftw_rader_top
void * fftw_malloc(size_t n)
fftw_plan fftw_pick_better(fftw_plan p1, fftw_plan p2)
fftw_codelet_desc * cdesc
struct fftw_plan_node_struct::@0::@7 hc2hc
fftw_plan_node * fftw_make_node_notw(int size, const fftw_codelet_desc *config)
void fftw_print_plan(fftw_plan p)
struct fftw_plan_node_struct::@0::@6 hc2real
fftw_plan_node * fftw_make_node(void)
void fftw_destroy_table(fftw_plan *table)
struct fftw_plan_node_struct::@0::@8 rgeneric
fftw_plan_node * fftw_make_node_rgeneric(int n, int size, fftw_direction dir, fftw_rgeneric_codelet *codelet, fftw_plan_node *recurse, int flags)
struct fftw_plan_node_struct::@0::@2 twiddle
double fftw_estimate_node(fftw_plan_node *p)
void fftw_insert(fftw_plan *table, fftw_plan this_plan)
#define NOTW_OPTIMAL_SIZE
void( fftw_rgeneric_codelet)(fftw_real *, const fftw_complex *, int, int, int, int)
fftw_plan_node * fftw_make_node_generic(int n, int size, fftw_generic_codelet *codelet, fftw_plan_node *recurse, int flags)
#define TWIDDLE_OPTIMAL_SIZE
struct fftw_plan_struct * fftw_plan
void fftw_destroy_plan_internal(fftw_plan p)
fftw_plan_node * fftw_make_node_real2hc(int size, const fftw_codelet_desc *config)
struct fftw_plan_node_struct::@0::@1 notw
struct fftw_plan_node_struct * recurse
enum fftw_node_type wisdom_type
struct fftw_plan_node_struct::@0::@3 generic
void fftw_use_node(fftw_plan_node *p)
void fftw_destroy_twiddle(fftw_twiddle *tw)
fftw_plan_node * fftw_make_node_twiddle(int n, const fftw_codelet_desc *config, fftw_plan_node *recurse, int flags)