Mercurial > hg > qm-dsp
annotate ext/kissfft/Makefile @ 515:08bcc06c38ec tip master
Remove fast-math
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 28 Jan 2020 15:27:37 +0000 |
parents | 1f1999b0f577 |
children |
rev | line source |
---|---|
c@409 | 1 KFVER=130 |
c@409 | 2 |
c@409 | 3 doc: |
c@409 | 4 @echo "Start by reading the README file. If you want to build and test lots of stuff, do a 'make testall'" |
c@409 | 5 @echo "but be aware that 'make testall' has dependencies that the basic kissfft software does not." |
c@409 | 6 @echo "It is generally unneeded to run these tests yourself, unless you plan on changing the inner workings" |
c@409 | 7 @echo "of kissfft and would like to make use of its regression tests." |
c@409 | 8 |
c@409 | 9 testall: |
c@409 | 10 # The simd and int32_t types may or may not work on your machine |
c@409 | 11 make -C test DATATYPE=simd CFLAGADD="$(CFLAGADD)" test |
c@409 | 12 make -C test DATATYPE=int32_t CFLAGADD="$(CFLAGADD)" test |
c@409 | 13 make -C test DATATYPE=int16_t CFLAGADD="$(CFLAGADD)" test |
c@409 | 14 make -C test DATATYPE=float CFLAGADD="$(CFLAGADD)" test |
c@409 | 15 make -C test DATATYPE=double CFLAGADD="$(CFLAGADD)" test |
c@409 | 16 echo "all tests passed" |
c@409 | 17 |
c@409 | 18 tarball: clean |
c@409 | 19 hg archive -r v$(KFVER) -t tgz kiss_fft$(KFVER).tar.gz |
c@409 | 20 hg archive -r v$(KFVER) -t zip kiss_fft$(KFVER).zip |
c@409 | 21 |
c@409 | 22 clean: |
c@409 | 23 cd test && make clean |
c@409 | 24 cd tools && make clean |
c@409 | 25 rm -f kiss_fft*.tar.gz *~ *.pyc kiss_fft*.zip |
c@409 | 26 |
c@409 | 27 asm: kiss_fft.s |
c@409 | 28 |
c@409 | 29 kiss_fft.s: kiss_fft.c kiss_fft.h _kiss_fft_guts.h |
c@409 | 30 [ -e kiss_fft.s ] && mv kiss_fft.s kiss_fft.s~ || true |
c@409 | 31 gcc -S kiss_fft.c -O3 -mtune=native -ffast-math -fomit-frame-pointer -unroll-loops -dA -fverbose-asm |
c@409 | 32 gcc -o kiss_fft_short.s -S kiss_fft.c -O3 -mtune=native -ffast-math -fomit-frame-pointer -dA -fverbose-asm -DFIXED_POINT |
c@409 | 33 [ -e kiss_fft.s~ ] && diff kiss_fft.s~ kiss_fft.s || true |