1 /* This library is free software; you can redistribute it and/or modify it 2 * under the terms of the GNU Lesser General Public License as published by 3 * the Free Software Foundation; either version 2.1 of the License, or (at 4 * your option) any later version. 5 * 6 * This library is distributed in the hope that it will be useful, but 7 * WITHOUT ANY WARRANTY; without even the implied warranty of 8 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser 9 * General Public License for more details. 10 * 11 * You should have received a copy of the GNU Lesser General Public License 12 * along with this library; if not, write to the Free Software Foundation, 13 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 14 */ 15 16 #define FFT4G_MAX_SIZE 262144 17 18 void lsx_cdft(int, int, double *, int *, double *); 19 void lsx_rdft(int, int, double *, int *, double *); 20 void lsx_ddct(int, int, double *, int *, double *); 21 void lsx_ddst(int, int, double *, int *, double *); 22 void lsx_dfct(int, double *, double *, int *, double *); 23 void lsx_dfst(int, double *, double *, int *, double *); 24 25 void lsx_cdft_f(int, int, float *, int *, float *); 26 void lsx_rdft_f(int, int, float *, int *, float *); 27 void lsx_ddct_f(int, int, float *, int *, float *); 28 void lsx_ddst_f(int, int, float *, int *, float *); 29 void lsx_dfct_f(int, float *, float *, int *, float *); 30 void lsx_dfst_f(int, float *, float *, int *, float *); 31 32 #define dft_br_len(l) (2 + (1 << (int)(log(l / 2 + .5) / log(2.)) / 2)) 33 #define dft_sc_len(l) (l / 2) 34 35 /* Over-allocate h by 2 to use these macros */ 36 #define LSX_PACK(h, n) h[1] = h[n] 37 #define LSX_UNPACK(h, n) h[n] = h[1], h[n + 1] = h[1] = 0; 38