tdf#74664 : optimize the computation of twiddle factors.
Twiddle factors are just Nth roots of unity and in this case
N is always some 2^k, so we just need to compute the roots that
come in the starting quadrant (may be first or fourth depending on
whether we want to calculate DFT or the inverse DFT) and exploit
the symmetry of the unit circle.
Better still, we only need to compute the real parts of roots in
the starting quadrant and just use the identity :-
sin(angle) = cos(90-angle) // if angle is in degrees.
to compute the imaginary parts quickly.
Change-Id: Ic42aefa1c46668f9365984c79aebf2971e7d2830
Reviewed-on: https://gerrit.libreoffice.org/68017
Tested-by: Jenkins
Reviewed-by: Dennis Francis <dennis.francis@collabora.com>