annotate fft/fftw/fftw-3.3.4/rdft/scalar/r2cf/Makefile.am @ 40:223f770b5341 kissfft-double tip

Try a double-precision kissfft
author Chris Cannam
date Wed, 07 Sep 2016 10:40:32 +0100
parents 26056e866c29
children
rev   line source
Chris@19 1 # This Makefile.am specifies a set of codelets, efficient transforms
Chris@19 2 # of small sizes, that are used as building blocks (kernels) by FFTW
Chris@19 3 # to build up large transforms, as well as the options for generating
Chris@19 4 # and compiling them.
Chris@19 5
Chris@19 6 # You can customize FFTW for special needs, e.g. to handle certain
Chris@19 7 # sizes more efficiently, by adding new codelets to the lists of those
Chris@19 8 # included by default. If you change the list of codelets, any new
Chris@19 9 # ones you added will be automatically generated when you run the
Chris@19 10 # bootstrap script (see "Generating your own code" in the FFTW
Chris@19 11 # manual).
Chris@19 12
Chris@19 13 ###########################################################################
Chris@19 14 AM_CPPFLAGS = -I$(top_srcdir)/kernel -I$(top_srcdir)/rdft \
Chris@19 15 -I$(top_srcdir)/rdft/scalar
Chris@19 16 noinst_LTLIBRARIES = librdft_scalar_r2cf.la
Chris@19 17
Chris@19 18 ###########################################################################
Chris@19 19 # r2cf_<n> is a hard-coded real-to-complex FFT of size <n> (base cases
Chris@19 20 # of real-input FFT recursion)
Chris@19 21 R2CF = r2cf_2.c r2cf_3.c r2cf_4.c r2cf_5.c r2cf_6.c r2cf_7.c r2cf_8.c \
Chris@19 22 r2cf_9.c r2cf_10.c r2cf_11.c r2cf_12.c r2cf_13.c r2cf_14.c r2cf_15.c \
Chris@19 23 r2cf_16.c r2cf_32.c r2cf_64.c r2cf_128.c \
Chris@19 24 r2cf_20.c r2cf_25.c # r2cf_30.c r2cf_40.c r2cf_50.c
Chris@19 25
Chris@19 26 ###########################################################################
Chris@19 27 # hf_<r> is a "twiddle" FFT of size <r>, implementing a radix-r DIT
Chris@19 28 # step for a real-input FFT. Every hf codelet must have a
Chris@19 29 # corresponding r2cfII codelet (see below)!
Chris@19 30 HF = hf_2.c hf_3.c hf_4.c hf_5.c hf_6.c hf_7.c hf_8.c hf_9.c \
Chris@19 31 hf_10.c hf_12.c hf_15.c hf_16.c hf_32.c hf_64.c \
Chris@19 32 hf_20.c hf_25.c # hf_30.c hf_40.c hf_50.c
Chris@19 33
Chris@19 34 # like hf, but generates part of its trig table on the fly (good for large n)
Chris@19 35 HF2 = hf2_4.c hf2_8.c hf2_16.c hf2_32.c \
Chris@19 36 hf2_5.c hf2_20.c hf2_25.c
Chris@19 37
Chris@19 38 # an r2cf transform where the input is shifted by half a sample (output
Chris@19 39 # is multiplied by a phase). This is needed as part of the DIT recursion;
Chris@19 40 # every hf_<r> or hf2_<r> codelet should have a corresponding r2cfII_<r>
Chris@19 41 R2CFII = r2cfII_2.c r2cfII_3.c r2cfII_4.c r2cfII_5.c r2cfII_6.c \
Chris@19 42 r2cfII_7.c r2cfII_8.c r2cfII_9.c r2cfII_10.c r2cfII_12.c r2cfII_15.c \
Chris@19 43 r2cfII_16.c r2cfII_32.c r2cfII_64.c \
Chris@19 44 r2cfII_20.c r2cfII_25.c # r2cfII_30.c r2cfII_40.c r2cfII_50.c
Chris@19 45
Chris@19 46 ###########################################################################
Chris@19 47 # hc2cf_<r> is a "twiddle" FFT of size <r>, implementing a radix-r DIT
Chris@19 48 # step for a real-input FFT with rdft2-style output. <r> must be even.
Chris@19 49 HC2CF = hc2cf_2.c hc2cf_4.c hc2cf_6.c hc2cf_8.c hc2cf_10.c hc2cf_12.c \
Chris@19 50 hc2cf_16.c hc2cf_32.c \
Chris@19 51 hc2cf_20.c # hc2cf_30.c
Chris@19 52
Chris@19 53 HC2CFDFT = hc2cfdft_2.c hc2cfdft_4.c hc2cfdft_6.c hc2cfdft_8.c \
Chris@19 54 hc2cfdft_10.c hc2cfdft_12.c hc2cfdft_16.c hc2cfdft_32.c \
Chris@19 55 hc2cfdft_20.c # hc2cfdft_30.c
Chris@19 56
Chris@19 57 # like hc2cf, but generates part of its trig table on the fly (good
Chris@19 58 # for large n)
Chris@19 59 HC2CF2 = hc2cf2_4.c hc2cf2_8.c hc2cf2_16.c hc2cf2_32.c \
Chris@19 60 hc2cf2_20.c # hc2cf2_30.c
Chris@19 61 HC2CFDFT2 = hc2cfdft2_4.c hc2cfdft2_8.c hc2cfdft2_16.c hc2cfdft2_32.c \
Chris@19 62 hc2cfdft2_20.c # hc2cfdft2_30.c
Chris@19 63
Chris@19 64 ###########################################################################
Chris@19 65 ALL_CODELETS = $(R2CF) $(HF) $(HF2) $(R2CFII) $(HC2CF) $(HC2CF2) \
Chris@19 66 $(HC2CFDFT) $(HC2CFDFT2)
Chris@19 67
Chris@19 68 BUILT_SOURCES= $(ALL_CODELETS) $(CODLIST)
Chris@19 69
Chris@19 70 librdft_scalar_r2cf_la_SOURCES = $(BUILT_SOURCES)
Chris@19 71
Chris@19 72 SOLVTAB_NAME = X(solvtab_rdft_r2cf)
Chris@19 73 XRENAME=X
Chris@19 74
Chris@19 75 # special rules for regenerating codelets.
Chris@19 76 include $(top_srcdir)/support/Makefile.codelets
Chris@19 77
Chris@19 78 if MAINTAINER_MODE
Chris@19 79 FLAGS_R2CF=$(RDFT_FLAGS_COMMON)
Chris@19 80 FLAGS_HF=$(RDFT_FLAGS_COMMON)
Chris@19 81 FLAGS_HF2=$(RDFT_FLAGS_COMMON) -twiddle-log3 -precompute-twiddles
Chris@19 82 FLAGS_HC2CF=$(RDFT_FLAGS_COMMON)
Chris@19 83 FLAGS_HC2CF2=$(RDFT_FLAGS_COMMON) -twiddle-log3 -precompute-twiddles
Chris@19 84 FLAGS_R2CFII=$(RDFT_FLAGS_COMMON)
Chris@19 85
Chris@19 86 r2cf_%.c: $(CODELET_DEPS) $(GEN_R2CF)
Chris@19 87 ($(PRELUDE_COMMANDS_RDFT); $(TWOVERS) $(GEN_R2CF) $(FLAGS_R2CF) -n $* -name r2cf_$* -include "r2cf.h") | $(ADD_DATE) | $(INDENT) >$@
Chris@19 88
Chris@19 89 hf_%.c: $(CODELET_DEPS) $(GEN_HC2HC)
Chris@19 90 ($(PRELUDE_COMMANDS_RDFT); $(TWOVERS) $(GEN_HC2HC) $(FLAGS_HF) -n $* -dit -name hf_$* -include "hf.h") | $(ADD_DATE) | $(INDENT) >$@
Chris@19 91
Chris@19 92 hf2_%.c: $(CODELET_DEPS) $(GEN_HC2HC)
Chris@19 93 ($(PRELUDE_COMMANDS_RDFT); $(TWOVERS) $(GEN_HC2HC) $(FLAGS_HF2) -n $* -dit -name hf2_$* -include "hf.h") | $(ADD_DATE) | $(INDENT) >$@
Chris@19 94
Chris@19 95 r2cfII_%.c: $(CODELET_DEPS) $(GEN_R2CF)
Chris@19 96 ($(PRELUDE_COMMANDS_RDFT); $(TWOVERS) $(GEN_R2CF) $(FLAGS_R2CF) -n $* -name r2cfII_$* -dft-II -include "r2cfII.h") | $(ADD_DATE) | $(INDENT) >$@
Chris@19 97
Chris@19 98 hc2cf_%.c: $(CODELET_DEPS) $(GEN_HC2C)
Chris@19 99 ($(PRELUDE_COMMANDS_RDFT); $(TWOVERS) $(GEN_HC2C) $(FLAGS_HC2CF) -n $* -dit -name hc2cf_$* -include "hc2cf.h") | $(ADD_DATE) | $(INDENT) >$@
Chris@19 100
Chris@19 101 hc2cf2_%.c: $(CODELET_DEPS) $(GEN_HC2C)
Chris@19 102 ($(PRELUDE_COMMANDS_RDFT); $(TWOVERS) $(GEN_HC2C) $(FLAGS_HC2CF2) -n $* -dit -name hc2cf2_$* -include "hc2cf.h") | $(ADD_DATE) | $(INDENT) >$@
Chris@19 103
Chris@19 104 hc2cfdft_%.c: $(CODELET_DEPS) $(GEN_HC2CDFT)
Chris@19 105 ($(PRELUDE_COMMANDS_RDFT); $(TWOVERS) $(GEN_HC2CDFT) $(FLAGS_HC2CF) -n $* -dit -name hc2cfdft_$* -include "hc2cf.h") | $(ADD_DATE) | $(INDENT) >$@
Chris@19 106
Chris@19 107 hc2cfdft2_%.c: $(CODELET_DEPS) $(GEN_HC2CDFT)
Chris@19 108 ($(PRELUDE_COMMANDS_RDFT); $(TWOVERS) $(GEN_HC2CDFT) $(FLAGS_HC2CF2) -n $* -dit -name hc2cfdft2_$* -include "hc2cf.h") | $(ADD_DATE) | $(INDENT) >$@
Chris@19 109
Chris@19 110 endif # MAINTAINER_MODE