Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!lll-lcc!lll-tis!ames!sdcsvax!ucsdhub!hp-sdd!hplabs!hpcea!wunder From: wunder@hpcea.HP.COM (Walter Underwood) Newsgroups: comp.sources.d Subject: Re: Re: fast fourier transform Message-ID: <630001@hpcea.HP.COM> Date: Wed, 15-Jul-87 21:23:27 EDT Article-I.D.: hpcea.630001 Posted: Wed Jul 15 21:23:27 1987 Date-Received: Sat, 18-Jul-87 05:51:01 EDT References: <407@uhnix2.UUCP> Organization: HP Corporate Engineering - Palo Alto, CA Lines: 155 / hpcea:comp.sources.d / uace0@uhnix2.UUCP (Univ ATARI Comp Enthusiasts) / 6:04 pm Jul 10, 1987 / In article <1065@bloom-beacon.MIT.EDU> dquah@ares.UUCP (Danny Quah) writes: > This is my third posting on this in as many months; I ... ^^^^^ I've watched all 3 go by with no response as well. So does anyone out there have one? Yes. --------------------------------------- /* Decimation-in-time FFT benchmark based on the Cooley-Tukey algorithm. * This C Language implementation is translated from Rabiner & Gold. * Standard C is used as defined in "The C Programming Language" by * Kernighan & Ritchie. * Paul R. Mouchon (415) 852-4770 * Ford Aerospace MS-X21 * 3939 Fabian Way * Palo Alto, CA 94303 */ #include #define TWOPI 6.283185308 #define N 512 /* fft size, number of points */ #define NU 9 /* radix 2 exponent, N = 2**NU */ #define NLOOPS 100 /* number of N-point fft's to compute */ main() /* main benchmark driver */ { int i,j; /* loop counter */ double xreal[N],ximag[N]; /* data arrays */ double ccoef[N],scoef[N]; /* cosine & sine coefficient tables */ for ( j=0; j0 */ int x,n; { int p; for ( p=1; n>0; --n ) p = p*x; return(p); }