mirror of
https://github.com/mborgerding/kissfft.git
synced 2025-07-18 21:14:24 -04:00
bunch of minor code cleanup
This commit is contained in:
@ -71,17 +71,15 @@ struct kiss_fft_state{
|
||||
do { (res).r -= (a).r; (res).i -= (a).i; }while(0)
|
||||
|
||||
static
|
||||
kiss_fft_cpx kf_cexp(double phase) /* returns e ** (j*phase) */
|
||||
void kf_cexp(kiss_fft_cpx * x,double phase) /* returns e ** (j*phase) */
|
||||
{
|
||||
kiss_fft_cpx x;
|
||||
#ifdef FIXED_POINT
|
||||
x.r = (kiss_fft_scalar) (32767 * cos (phase));
|
||||
x.i = (kiss_fft_scalar) (32767 * sin (phase));
|
||||
x->r = (kiss_fft_scalar) (32767 * cos (phase));
|
||||
x->i = (kiss_fft_scalar) (32767 * sin (phase));
|
||||
#else
|
||||
x.r = cos (phase);
|
||||
x.i = sin (phase);
|
||||
x->r = cos (phase);
|
||||
x->i = sin (phase);
|
||||
#endif
|
||||
return x;
|
||||
}
|
||||
|
||||
/* a debugging function */
|
||||
|
Reference in New Issue
Block a user