1define DEF_FFT 2FATE_DCT-$(CONFIG_DCT) += fate-dct1d-$(1) fate-idct1d-$(1) 3FATE_FFT-$(CONFIG_FFT) += fate-fft-$(1) fate-ifft-$(1) 4FATE_MDCT-$(CONFIG_MDCT) += fate-mdct-$(1) fate-imdct-$(1) 5FATE_RDFT-$(CONFIG_RDFT) += fate-rdft-$(1) fate-irdft-$(1) 6 7fate-fft-$(N): ARGS = -n$(1) 8fate-ifft-$(N): ARGS = -n$(1) -i 9fate-mdct-$(N): ARGS = -n$(1) -m 10fate-imdct-$(N): ARGS = -n$(1) -m -i 11fate-rdft-$(N): ARGS = -n$(1) -r 12fate-irdft-$(N): ARGS = -n$(1) -r -i 13fate-dct1d-$(N): ARGS = -n$(1) -d 14fate-idct1d-$(N): ARGS = -n$(1) -d -i 15endef 16 17$(foreach N, 4 5 6 7 8 9 10 11 12, $(eval $(call DEF_FFT,$(N)))) 18 19fate-dct-float: $(FATE_DCT-yes) 20fate-fft-float: $(FATE_FFT-yes) 21fate-mdct-float: $(FATE_MDCT-yes) 22fate-rdft-float: $(FATE_RDFT-yes) 23 24FATE_FFT_ALL = $(FATE_DCT-yes) $(FATE_FFT-yes) $(FATE_MDCT-yes) $(FATE_RDFT-yes) 25 26$(FATE_FFT_ALL): libavcodec/tests/fft$(EXESUF) 27$(FATE_FFT_ALL): CMD = run libavcodec/tests/fft$(EXESUF) $(CPUFLAGS:%=-c%) $(ARGS) 28 29$(FATE_FFT_ALL): CMP = null 30 31define DEF_FFT_FIXED32 32FATE_FFT_FIXED32 += fate-fft-fixed32-$(1) fate-ifft-fixed32-$(1) \ 33 fate-mdct-fixed32-$(1) fate-imdct-fixed32-$(1) 34 35fate-fft-fixed32-$(1): ARGS = -n$(1) 36fate-ifft-fixed32-$(1): ARGS = -n$(1) -i 37#fate-mdct-fixed32-$(1): ARGS = -n$(1) -m 38fate-imdct-fixed32-$(1): ARGS = -n$(1) -m -i 39endef 40 41$(foreach N, 4 5 6 7 8 9 10 11 12, $(eval $(call DEF_FFT_FIXED32,$(N)))) 42 43fate-fft-fixed32: $(FATE_FFT_FIXED32) 44$(FATE_FFT_FIXED32): libavcodec/tests/fft-fixed32$(EXESUF) 45$(FATE_FFT_FIXED32): CMD = run libavcodec/tests/fft-fixed32$(EXESUF) $(CPUFLAGS:%=-c%) $(ARGS) 46$(FATE_FFT_FIXED32): CMP = null 47 48define DEF_AV_FFT 49FATE_AV_DCT-$(CONFIG_DCT) += fate-av-dct1d-$(1) fate-av-idct1d-$(1) 50FATE_AV_FFT-$(CONFIG_FFT) += fate-av-fft-$(1) fate-av-ifft-$(1) 51FATE_AV_MDCT-$(CONFIG_MDCT) += fate-av-mdct-$(1) fate-av-imdct-$(1) 52FATE_AV_RDFT-$(CONFIG_RDFT) += fate-av-rdft-$(1) fate-av-irdft-$(1) 53 54fate-av-fft-$(N): ARGS = -n$(1) 55fate-av-ifft-$(N): ARGS = -n$(1) -i 56fate-av-mdct-$(N): ARGS = -n$(1) -m 57fate-av-imdct-$(N): ARGS = -n$(1) -m -i 58fate-av-rdft-$(N): ARGS = -n$(1) -r 59fate-av-irdft-$(N): ARGS = -n$(1) -r -i 60fate-av-dct1d-$(N): ARGS = -n$(1) -d 61fate-av-idct1d-$(N): ARGS = -n$(1) -d -i 62endef 63 64$(foreach N, 4 5 6 7 8 9 10 11 12, $(eval $(call DEF_AV_FFT,$(N)))) 65 66fate-av-dct-float: $(FATE_AV_DCT-yes) 67fate-av-fft-float: $(FATE_AV_FFT-yes) 68fate-av-mdct-float: $(FATE_AV_MDCT-yes) 69fate-av-rdft-float: $(FATE_AV_RDFT-yes) 70 71FATE_AV_FFT_ALL = $(FATE_AV_DCT-yes) $(FATE_AV_FFT-yes) $(FATE_AV_MDCT-yes) $(FATE_AV_RDFT-yes) 72 73$(FATE_AV_FFT_ALL): libavcodec/tests/avfft$(EXESUF) 74$(FATE_AV_FFT_ALL): CMD = run libavcodec/tests/avfft$(EXESUF) $(CPUFLAGS:%=-c%) $(ARGS) 75$(FATE_AV_FFT_ALL): CMP = null 76 77fate-dct: fate-dct-float 78fate-fft: fate-fft-float fate-fft-fixed32 79fate-mdct: fate-mdct-float 80fate-rdft: fate-rdft-float 81 82FATE-$(call ALLYES, AVCODEC FFT MDCT) += $(FATE_FFT_ALL) $(FATE_FFT_FIXED32) $(FATE_AV_FFT_ALL) 83fate-fft-all: $(FATE_FFT_ALL) $(FATE_FFT_FIXED32) $(FATE_AV_FFT_ALL) 84