cannam@167: cannam@167: cannam@167: cannam@167: cannam@167:
cannam@167:cannam@167: Next: Memory Allocation, Previous: Complex numbers, Up: Data Types and Files [Contents][Index]
cannam@167:You can install single and long-double precision versions of FFTW,
cannam@167: which replace double
with float
and long double
,
cannam@167: respectively (see Installation and Customization). To use these
cannam@167: interfaces, you:
cannam@167:
-lfftw3f
or
cannam@167: -lfftw3l
instead of (or in addition to) -lfftw3
. (You
cannam@167: can link to the different-precision libraries simultaneously.)
cannam@167:
cannam@167: <fftw3.h>
header file.
cannam@167:
cannam@167: fftw_complex
becomes fftwf_complex
, fftw_execute
cannam@167: becomes fftwf_execute
, etcetera.)
cannam@167:
cannam@167: double
with float
or long double
for
cannam@167: subroutine parameters.
cannam@167:
cannam@167: Depending upon your compiler and/or hardware, long double
may not
cannam@167: be any more precise than double
(or may not be supported at all,
cannam@167: although it is standard in C99).
cannam@167:
cannam@167:
We also support using the nonstandard __float128
cannam@167: quadruple-precision type provided by recent versions of gcc
on
cannam@167: 32- and 64-bit x86 hardware (see Installation and Customization).
cannam@167: To use this type, link with -lfftw3q -lquadmath -lm
(the
cannam@167: libquadmath
library provided by gcc
is needed for
cannam@167: quadruple-precision trigonometric functions) and use ‘fftwq_’
cannam@167: identifiers.
cannam@167: