Chris@19: Chris@19: Chris@19: Precision - FFTW 3.3.4 Chris@19: Chris@19: Chris@19: Chris@19: Chris@19: Chris@19: Chris@19: Chris@19: Chris@19: Chris@19: Chris@19: Chris@19: Chris@19: Chris@19:
Chris@19: Chris@19:

Chris@19: Next: , Chris@19: Previous: Complex numbers, Chris@19: Up: Data Types and Files Chris@19:


Chris@19:
Chris@19: Chris@19:

4.1.2 Precision

Chris@19: Chris@19:

Chris@19: You can install single and long-double precision versions of FFTW, Chris@19: which replace double with float and long double, Chris@19: respectively (see Installation and Customization). To use these Chris@19: interfaces, you: Chris@19: Chris@19:

Chris@19: Chris@19:

Depending upon your compiler and/or hardware, long double may not Chris@19: be any more precise than double (or may not be supported at all, Chris@19: although it is standard in C99). Chris@19: Chris@19: Chris@19:

We also support using the nonstandard __float128 Chris@19: quadruple-precision type provided by recent versions of gcc on Chris@19: 32- and 64-bit x86 hardware (see Installation and Customization). Chris@19: To use this type, link with -lfftw3q -lquadmath -lm (the Chris@19: libquadmath library provided by gcc is needed for Chris@19: quadruple-precision trigonometric functions) and use ‘fftwq_’ Chris@19: identifiers. Chris@19: Chris@19: Chris@19: Chris@19: