mirror of
https://github.com/mborgerding/kissfft.git
synced 2025-05-27 21:20:27 -04:00
made some things const -- doesn't really have an effect under gcc, but it might under some compilers
added asm target to check to see if the assembly code changes
This commit is contained in:
parent
b61061d52a
commit
b1dad2147b
8
Makefile
8
Makefile
@ -29,6 +29,10 @@ dist: tarball
|
||||
|
||||
upload: dist
|
||||
ncftpput upload.sourceforge.net incoming $(ZIPFILE) $(TARBALL)
|
||||
|
||||
asm:
|
||||
|
||||
asm: kiss_fft.s
|
||||
|
||||
kiss_fft.s: kiss_fft.c kiss_fft.h _kiss_fft_guts.h
|
||||
[ -e kiss_fft.s ] && mv kiss_fft.s kiss_fft.s~ || true
|
||||
gcc -S kiss_fft.c -O3 -march=pentiumpro -ffast-math -fomit-frame-pointer -dA -fverbose-asm
|
||||
[ -e kiss_fft.s~ ] && diff kiss_fft.s~ kiss_fft.s || true
|
||||
|
@ -84,15 +84,6 @@ kiss_fft_cpx kf_cexp(double phase) /* returns e ** (j*phase) */
|
||||
return x;
|
||||
}
|
||||
|
||||
void kf_work(
|
||||
kiss_fft_cpx * Fout,
|
||||
const kiss_fft_cpx * f,
|
||||
int fstride,
|
||||
int in_skip,
|
||||
int * factors,
|
||||
const kiss_fft_state * st
|
||||
);
|
||||
|
||||
/* a debugging function */
|
||||
#define pcpx(c)\
|
||||
fprintf(stderr,"%g + %gi\n",(double)((c)->r),(double)((c)->i) )
|
||||
|
12
kiss_fft.c
12
kiss_fft.c
@ -26,7 +26,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
|
||||
static void kf_bfly2(
|
||||
kiss_fft_cpx * Fout,
|
||||
int fstride,
|
||||
const int fstride,
|
||||
const kiss_fft_state * st,
|
||||
int m
|
||||
)
|
||||
@ -49,7 +49,7 @@ static void kf_bfly2(
|
||||
|
||||
static void kf_bfly4(
|
||||
kiss_fft_cpx * Fout,
|
||||
int fstride,
|
||||
const int fstride,
|
||||
const kiss_fft_state * st,
|
||||
int m
|
||||
)
|
||||
@ -97,7 +97,7 @@ static void kf_bfly4(
|
||||
|
||||
static void kf_bfly3(
|
||||
kiss_fft_cpx * Fout,
|
||||
int fstride,
|
||||
const int fstride,
|
||||
const kiss_fft_state * st,
|
||||
int m
|
||||
)
|
||||
@ -143,7 +143,7 @@ static void kf_bfly3(
|
||||
|
||||
static void kf_bfly5(
|
||||
kiss_fft_cpx * Fout,
|
||||
int fstride,
|
||||
const int fstride,
|
||||
const kiss_fft_state * st,
|
||||
int m
|
||||
)
|
||||
@ -205,7 +205,7 @@ static void kf_bfly5(
|
||||
/* perform the butterfly for one stage of a mixed radix FFT */
|
||||
static void kf_bfly_generic(
|
||||
kiss_fft_cpx * Fout,
|
||||
int fstride,
|
||||
const int fstride,
|
||||
const kiss_fft_state * st,
|
||||
int m,
|
||||
int p
|
||||
@ -244,7 +244,7 @@ static
|
||||
void kf_work(
|
||||
kiss_fft_cpx * Fout,
|
||||
const kiss_fft_cpx * f,
|
||||
int fstride,
|
||||
const int fstride,
|
||||
int in_stride,
|
||||
int * factors,
|
||||
const kiss_fft_state * st
|
||||
|
Loading…
Reference in New Issue
Block a user