Skip to content

Commit

Permalink
remove multiplication by FFT_SIGN
Browse files Browse the repository at this point in the history
[empty commit message]
  • Loading branch information
stevengj committed Dec 19, 2006
1 parent 8583a34 commit aee20bd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions kernel/trig.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,13 @@ static void rotate_sqrtn_table(triggen *p, INT m, R xr, R xi, R *res)
trigreal wr = wr1 * wr0 - wi1 * wi0;
trigreal wi = wi1 * wr0 + wr1 * wi0;

res[0] = xr * wr - xi * (FFT_SIGN * wi);
res[1] = xi * wr + xr * (FFT_SIGN * wi);
#if FFT_SIGN == -1
res[0] = xr * wr + xi * wi;
res[1] = xi * wr - xr * wi;
#else
res[0] = xr * wr - xi * wi;
res[1] = xi * wr + xr * wi;
#endif
}
}

Expand Down

0 comments on commit aee20bd

Please sign in to comment.