Bsoft  1.9
Bernard's software package
fftw-int.h File Reference
#include "config.h"
#include "fftw.h"
#include <sys/time.h>
#include <unistd.h>

Go to the source code of this file.

Macros

#define MULMOD(x, y, p)
 
#define FFTW_KONST(x)   ((fftw_real) x)
 
#define FFTW_TRIG_SIN   sin
 
#define FFTW_TRIG_COS   cos
 
#define FFTW_K2PI   FFTW_KONST(6.2831853071795864769252867665590057683943388)
 
#define HACK_ALIGN_STACK_EVEN   {}
 
#define HACK_ALIGN_STACK_ODD   {}
 
#define ASSERT_ALIGNED_DOUBLE   {}
 
#define FFTW_HAS_TIME_DIFF
 
#define FFTW_USE_GETTIMEOFDAY
 
#define fftw_get_time()   fftw_gettimeofday_get_time()
 
#define fftw_time_diff(t1, t2)   fftw_gettimeofday_time_diff(t1, t2)
 
#define fftw_time_to_sec(t)   ((double)(t).tv_sec + (double)(t).tv_usec * 1.0E-6)
 
#define FFTW_TIME_MIN   (1.0e-2)
 
#define FFTW_TIME_REPEAT   4
 
#define FFTW_TIME_LIMIT   2.0
 

Typedefs

typedef void(* fftw_plan_hook_ptr) (fftw_plan plan)
 
typedef double FFTW_TRIG_REAL
 
typedef struct timeval fftw_time
 

Enumerations

enum  fftw_wisdom_category { FFTW_WISDOM, RFFTW_WISDOM }
 

Functions

fftw_twiddle * fftw_create_twiddle (int n, const fftw_codelet_desc *d)
 
void fftw_destroy_twiddle (fftw_twiddle *tw)
 
void fftw_strided_copy (int, fftw_complex *, int, fftw_complex *)
 
void fftw_executor_simple (int, const fftw_complex *, fftw_complex *, fftw_plan_node *, int, int, fftw_recurse_kind recurse_kind)
 
fftwnd_plan fftwnd_create_plan_aux (int rank, const int *n, fftw_direction dir, int flags)
 
fftw_plan * fftwnd_new_plan_array (int rank)
 
fftw_plan * fftwnd_create_plans_generic (fftw_plan *plans, int rank, const int *n, fftw_direction dir, int flags)
 
fftw_plan * fftwnd_create_plans_specific (fftw_plan *plans, int rank, const int *n, const int *n_after, fftw_direction dir, int flags, fftw_complex *in, int istride, fftw_complex *out, int ostride)
 
int fftwnd_work_size (int rank, const int *n, int flags, int ncopies)
 
void fftwnd_aux (fftwnd_plan p, int cur_dim, fftw_complex *in, int istride, fftw_complex *out, int ostride, fftw_complex *work)
 
void fftwnd_aux_howmany (fftwnd_plan p, int cur_dim, int howmany, fftw_complex *in, int istride, int idist, fftw_complex *out, int ostride, int odist, fftw_complex *work)
 
int fftw_wisdom_lookup (int n, int flags, fftw_direction dir, enum fftw_wisdom_category category, int istride, int ostride, enum fftw_node_type *type, int *signature, fftw_recurse_kind *recurse_kind, int replace_p)
 
void fftw_wisdom_add (int n, int flags, fftw_direction dir, enum fftw_wisdom_category cat, int istride, int ostride, enum fftw_node_type type, int signature, fftw_recurse_kind recurse_kind)
 
double fftw_estimate_node (fftw_plan_node *p)
 
fftw_plan_node * fftw_make_node_notw (int size, const fftw_codelet_desc *config)
 
fftw_plan_node * fftw_make_node_real2hc (int size, const fftw_codelet_desc *config)
 
fftw_plan_node * fftw_make_node_hc2real (int size, const fftw_codelet_desc *config)
 
fftw_plan_node * fftw_make_node_twiddle (int n, const fftw_codelet_desc *config, fftw_plan_node *recurse, int flags)
 
fftw_plan_node * fftw_make_node_hc2hc (int n, fftw_direction dir, const fftw_codelet_desc *config, fftw_plan_node *recurse, int flags)
 
fftw_plan_node * fftw_make_node_generic (int n, int size, fftw_generic_codelet *codelet, fftw_plan_node *recurse, int flags)
 
fftw_plan_node * fftw_make_node_rgeneric (int n, int size, fftw_direction dir, fftw_rgeneric_codelet *codelet, fftw_plan_node *recurse, int flags)
 
int fftw_factor (int n)
 
fftw_plan_node * fftw_make_node (void)
 
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)
 
void fftw_use_plan (fftw_plan p)
 
void fftw_use_node (fftw_plan_node *p)
 
void fftw_destroy_plan_internal (fftw_plan p)
 
fftw_plan fftw_pick_better (fftw_plan p1, fftw_plan p2)
 
fftw_plan fftw_lookup (fftw_plan *table, int n, int flags, int vector_size)
 
void fftw_insert (fftw_plan *table, fftw_plan this_plan)
 
void fftw_make_empty_table (fftw_plan *table)
 
void fftw_destroy_table (fftw_plan *table)
 
void fftw_complete_twiddle (fftw_plan_node *p, int n)
 
fftw_plan_node * fftw_make_node_rader (int n, int size, fftw_direction dir, fftw_plan_node *recurse, int flags)
 
 DL_IMPORT (fftw_plan_hook_ptr) fftw_plan_hook
 
fftw_time fftw_gettimeofday_get_time (void)
 
fftw_time fftw_gettimeofday_time_diff (fftw_time t1, fftw_time t2)
 

Variables

fftw_rader_data * fftw_rader_top
 

Macro Definition Documentation

#define ASSERT_ALIGNED_DOUBLE   {}

Definition at line 236 of file fftw-int.h.

#define fftw_get_time ( )    fftw_gettimeofday_get_time()

Definition at line 356 of file fftw-int.h.

#define FFTW_HAS_TIME_DIFF

Definition at line 286 of file fftw-int.h.

#define FFTW_K2PI   FFTW_KONST(6.2831853071795864769252867665590057683943388)

Definition at line 189 of file fftw-int.h.

#define FFTW_KONST (   x)    ((fftw_real) x)

Definition at line 178 of file fftw-int.h.

#define fftw_time_diff (   t1,
  t2 
)    fftw_gettimeofday_time_diff(t1, t2)

Definition at line 357 of file fftw-int.h.

#define FFTW_TIME_LIMIT   2.0

Definition at line 492 of file fftw-int.h.

#define FFTW_TIME_MIN   (1.0e-2)

Definition at line 362 of file fftw-int.h.

#define FFTW_TIME_REPEAT   4

Definition at line 487 of file fftw-int.h.

#define fftw_time_to_sec (   t)    ((double)(t).tv_sec + (double)(t).tv_usec * 1.0E-6)

Definition at line 358 of file fftw-int.h.

#define FFTW_TRIG_COS   cos

Definition at line 186 of file fftw-int.h.

#define FFTW_TRIG_SIN   sin

Definition at line 185 of file fftw-int.h.

#define FFTW_USE_GETTIMEOFDAY

Definition at line 350 of file fftw-int.h.

#define HACK_ALIGN_STACK_EVEN   {}

Definition at line 230 of file fftw-int.h.

#define HACK_ALIGN_STACK_ODD   {}

Definition at line 233 of file fftw-int.h.

#define MULMOD (   x,
  y,
  p 
)
Value:
((int) ((((long long) (x)) * ((long long) (y))) \
% ((long long) (p))))

Definition at line 154 of file fftw-int.h.

Typedef Documentation

typedef void(* fftw_plan_hook_ptr) (fftw_plan plan)

Definition at line 138 of file fftw-int.h.

typedef struct timeval fftw_time

Definition at line 352 of file fftw-int.h.

typedef double FFTW_TRIG_REAL

Definition at line 187 of file fftw-int.h.

Enumeration Type Documentation

Enumerator
FFTW_WISDOM 
RFFTW_WISDOM 

Definition at line 69 of file fftw-int.h.

Function Documentation

DL_IMPORT ( fftw_plan_hook_ptr  )
void fftw_complete_twiddle ( fftw_plan_node *  p,
int  n 
)

Definition at line 296 of file putils.c.

fftw_twiddle* fftw_create_twiddle ( int  n,
const fftw_codelet_desc *  d 
)

Definition at line 175 of file twiddle.c.

void fftw_destroy_plan_internal ( fftw_plan  p)

Definition at line 353 of file putils.c.

void fftw_destroy_table ( fftw_plan *  table)

Definition at line 390 of file putils.c.

void fftw_destroy_twiddle ( fftw_twiddle *  tw)

Definition at line 201 of file twiddle.c.

double fftw_estimate_node ( fftw_plan_node *  p)

Definition at line 400 of file putils.c.

void fftw_executor_simple ( int  ,
const fftw_complex *  ,
fftw_complex *  ,
fftw_plan_node *  ,
int  ,
int  ,
fftw_recurse_kind  recurse_kind 
)

Definition at line 212 of file executor.c.

int fftw_factor ( int  n)

Definition at line 468 of file putils.c.

fftw_time fftw_gettimeofday_get_time ( void  )

Definition at line 143 of file timer.c.

fftw_time fftw_gettimeofday_time_diff ( fftw_time  t1,
fftw_time  t2 
)

Definition at line 150 of file timer.c.

void fftw_insert ( fftw_plan *  table,
fftw_plan  this_plan 
)

Definition at line 372 of file putils.c.

fftw_plan fftw_lookup ( fftw_plan *  table,
int  n,
int  flags,
int  vector_size 
)

Definition at line 379 of file putils.c.

void fftw_make_empty_table ( fftw_plan *  table)

Definition at line 367 of file putils.c.

fftw_plan_node* fftw_make_node ( void  )

Definition at line 43 of file putils.c.

fftw_plan_node* fftw_make_node_generic ( int  n,
int  size,
fftw_generic_codelet *  codelet,
fftw_plan_node *  recurse,
int  flags 
)

Definition at line 133 of file putils.c.

fftw_plan_node* fftw_make_node_hc2hc ( int  n,
fftw_direction  dir,
const fftw_codelet_desc *  config,
fftw_plan_node *  recurse,
int  flags 
)

Definition at line 112 of file putils.c.

fftw_plan_node* fftw_make_node_hc2real ( int  size,
const fftw_codelet_desc *  config 
)

Definition at line 80 of file putils.c.

fftw_plan_node* fftw_make_node_notw ( int  size,
const fftw_codelet_desc *  config 
)

Definition at line 57 of file putils.c.

fftw_plan_node* fftw_make_node_rader ( int  n,
int  size,
fftw_direction  dir,
fftw_plan_node *  recurse,
int  flags 
)

Definition at line 345 of file rader.c.

fftw_plan_node* fftw_make_node_real2hc ( int  size,
const fftw_codelet_desc *  config 
)

Definition at line 68 of file putils.c.

fftw_plan_node* fftw_make_node_rgeneric ( int  n,
int  size,
fftw_direction  dir,
fftw_rgeneric_codelet *  codelet,
fftw_plan_node *  recurse,
int  flags 
)

Definition at line 154 of file putils.c.

fftw_plan_node* fftw_make_node_twiddle ( int  n,
const fftw_codelet_desc *  config,
fftw_plan_node *  recurse,
int  flags 
)

Definition at line 92 of file putils.c.

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 
)

Definition at line 266 of file putils.c.

fftw_plan fftw_pick_better ( fftw_plan  p1,
fftw_plan  p2 
)

Definition at line 450 of file putils.c.

void fftw_strided_copy ( int  ,
fftw_complex *  ,
int  ,
fftw_complex *   
)

Definition at line 35 of file executor.c.

void fftw_use_node ( fftw_plan_node *  p)

Definition at line 52 of file putils.c.

void fftw_use_plan ( fftw_plan  p)

Definition at line 348 of file putils.c.

void fftw_wisdom_add ( int  n,
int  flags,
fftw_direction  dir,
enum fftw_wisdom_category  cat,
int  istride,
int  ostride,
enum fftw_node_type  type,
int  signature,
fftw_recurse_kind  recurse_kind 
)

Definition at line 85 of file wisdom.c.

int fftw_wisdom_lookup ( int  n,
int  flags,
fftw_direction  dir,
enum fftw_wisdom_category  category,
int  istride,
int  ostride,
enum fftw_node_type *  type,
int *  signature,
fftw_recurse_kind *  recurse_kind,
int  replace_p 
)

Definition at line 46 of file wisdom.c.

void fftwnd_aux ( fftwnd_plan  p,
int  cur_dim,
fftw_complex *  in,
int  istride,
fftw_complex *  out,
int  ostride,
fftw_complex *  work 
)

Definition at line 652 of file fftwnd.c.

void fftwnd_aux_howmany ( fftwnd_plan  p,
int  cur_dim,
int  howmany,
fftw_complex *  in,
int  istride,
int  idist,
fftw_complex *  out,
int  ostride,
int  odist,
fftw_complex *  work 
)

Definition at line 698 of file fftwnd.c.

fftwnd_plan fftwnd_create_plan_aux ( int  rank,
const int *  n,
fftw_direction  dir,
int  flags 
)

Definition at line 108 of file fftwnd.c.

fftw_plan* fftwnd_create_plans_generic ( fftw_plan *  plans,
int  rank,
const int *  n,
fftw_direction  dir,
int  flags 
)

Definition at line 175 of file fftwnd.c.

fftw_plan* fftwnd_create_plans_specific ( fftw_plan *  plans,
int  rank,
const int *  n,
const int *  n_after,
fftw_direction  dir,
int  flags,
fftw_complex *  in,
int  istride,
fftw_complex *  out,
int  ostride 
)

Definition at line 249 of file fftwnd.c.

fftw_plan* fftwnd_new_plan_array ( int  rank)

Definition at line 157 of file fftwnd.c.

int fftwnd_work_size ( int  rank,
const int *  n,
int  flags,
int  ncopies 
)

Definition at line 238 of file fftwnd.c.

Variable Documentation

fftw_rader_data* fftw_rader_top

Definition at line 186 of file putils.c.