#include "bench-user.h"#include <math.h>#include "kiss_fft.h"#include "kiss_fftnd.h"#include "kiss_fftr.h"Defines | |
| #define | FAILIF(c) |
Functions | |
| BEGIN_BENCH_DOC | BENCH_DOC ("copyright","Copyright (c) 2003,4 Mark Borgerding\n""\n""All rights reserved.\n""\n""Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n""\n"" * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n"" * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n"" * Neither the author nor the names of any contributors may be used to endorse or promote products derived from this software without specific prior written permission.\n""\n""THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n") END_BENCH_DOC int can_do(struct problem *p) |
| void | setup (struct problem *p) |
| void | doit (int iter, struct problem *p) |
| void | done (struct problem *p) |
Variables | |
| static kiss_fft_cfg | cfg = NULL |
| static kiss_fftr_cfg | cfgr = NULL |
| static kiss_fftnd_cfg | cfgnd = NULL |
| #define FAILIF | ( | c | ) |
Value:
if ( c ) do {\ fprintf(stderr,\ "kissfft: " #c " (file=%s:%d errno=%d %s)\n",\ __FILE__,__LINE__ , errno,strerror( errno ) ) ;\ exit(1);\ }while(0)
Referenced by setup().
| BEGIN_BENCH_DOC BENCH_DOC | ( | "copyright" | , | |
| "Copyright (c) | 2003, | |||
| 4 Mark Borgerding\n" "\n" "All rights reserved.\n" "\n" "Redistribution and use in source and binary | forms, | |||
| with or without | modification, | |||
| are permitted provided that the following conditions are met:\n" "\n" "*Redistributions of source code must retain the above copyright | notice, | |||
| this list of conditions and the following disclaimer.\n" "*Redistributions in binary form must reproduce the above copyright | notice, | |||
| this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n" "*Neither the author nor the names of any contributors may be used to endorse or promote products derived from this software without specific prior written permission.\n" "\n" "THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\"AS IS\" AND ANY EXPRESS OR IMPLIED | WARRANTIES, | |||
| INCLUDING | , | |||
| BUT NOT LIMITED | TO, | |||
| THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY | DIRECT, | |||
| INDIRECT | , | |||
| INCIDENTAL | , | |||
| SPECIAL | , | |||
| EXEMPLARY | , | |||
| OR CONSEQUENTIAL DAMAGES(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;LOSS OF USE, DATA, OR PROFITS;OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | LIABILITY, | |||
| WHETHER IN | CONTRACT, | |||
| STRICT | LIABILITY, | |||
| OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | SOFTWARE, | |||
| EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n" | ||||
| ) |
| void setup | ( | struct problem * | p | ) |
References FAILIF, kiss_fft_alloc(), kiss_fftnd_alloc(), and kiss_fftr_alloc().
| void doit | ( | int | iter, | |
| struct problem * | p | |||
| ) |
References kiss_fft(), kiss_fftnd(), kiss_fftr(), and kiss_fftri().
| void done | ( | struct problem * | p | ) |
kiss_fft_cfg cfg = NULL [static] |
Referenced by test1d(), transform_signal(), and two_tone_test().
kiss_fftr_cfg cfgr = NULL [static] |
kiss_fftnd_cfg cfgnd = NULL [static] |
1.5.8