(git:e70887f)
Loading...
Searching...
No Matches
fft_utils.h File Reference
#include "fft_timer.h"
#include <complex.h>
#include <omp.h>
#include <stdio.h>
#include <string.h>

Go to the source code of this file.

Macros

#define FFT_FORWARD   1
#define FFT_BACKWARD   -1

Functions

static int fft_team_size (void)
 Returns the number of threads used for FFT planning. Outside an OpenMP parallel region the maximum number of threads is used. Inside a parallel region a single thread is used to avoid nested parallelism and concurrently executed shared plans.
static int imin (int x, int y)
 Returns the smaller of two given integer (missing from the C standard).
static int imax (int x, int y)
 Returns the larger of two given integer (missing from the C standard).
static double dmin (double x, double y)
 Returns the smaller of two given integer (missing from the C standard).
static double dmax (double x, double y)
 Returns the larger of two given integer (missing from the C standard).
static int modulo (int a, int m)
 Equivalent of Fortran's MODULO which always returns a positive number. https://gcc.gnu.org/onlinedocs/gfortran/MODULO.html.
static long int product3 (const int array3[3])
 Calculates the product of three numbers.

Macro Definition Documentation

◆ FFT_FORWARD

#define FFT_FORWARD   1

Definition at line 17 of file fft_utils.h.

◆ FFT_BACKWARD

#define FFT_BACKWARD   -1

Definition at line 18 of file fft_utils.h.

Function Documentation

◆ fft_team_size()

int fft_team_size ( void )
inlinestatic

Returns the number of threads used for FFT planning. Outside an OpenMP parallel region the maximum number of threads is used. Inside a parallel region a single thread is used to avoid nested parallelism and concurrently executed shared plans.

Author
Frederick Stein

Definition at line 27 of file fft_utils.h.

Here is the caller graph for this function:

◆ imin()

int imin ( int x,
int y )
inlinestatic

Returns the smaller of two given integer (missing from the C standard).

Author
Ole Schuett

Definition at line 35 of file fft_utils.h.

◆ imax()

int imax ( int x,
int y )
inlinestatic

Returns the larger of two given integer (missing from the C standard).

Author
Ole Schuett

Definition at line 41 of file fft_utils.h.

◆ dmin()

double dmin ( double x,
double y )
inlinestatic

Returns the smaller of two given integer (missing from the C standard).

Author
Frederick Stein

Definition at line 47 of file fft_utils.h.

Here is the caller graph for this function:

◆ dmax()

double dmax ( double x,
double y )
inlinestatic

Returns the larger of two given integer (missing from the C standard).

Author
Frederick Stein

Definition at line 53 of file fft_utils.h.

Here is the caller graph for this function:

◆ modulo()

int modulo ( int a,
int m )
inlinestatic

Equivalent of Fortran's MODULO which always returns a positive number. https://gcc.gnu.org/onlinedocs/gfortran/MODULO.html.

Author
Ole Schuett

Definition at line 60 of file fft_utils.h.

◆ product3()

long int product3 ( const int array3[3])
inlinestatic

Calculates the product of three numbers.

Author
Frederick Stein

Definition at line 66 of file fft_utils.h.

Here is the caller graph for this function: