~ubuntu-branches/ubuntu/maverick/blender/maverick

« back to all changes in this revision

Viewing changes to extern/fftw/libbench2/bench.h

  • Committer: Bazaar Package Importer
  • Author(s): Khashayar Naderehvandi, Khashayar Naderehvandi, Alessio Treglia
  • Date: 2009-01-22 16:53:59 UTC
  • mfrom: (14.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20090122165359-v0996tn7fbit64ni
Tags: 2.48a+dfsg-1ubuntu1
[ Khashayar Naderehvandi ]
* Merge from debian experimental (LP: #320045), Ubuntu remaining changes:
  - Add patch correcting header file locations.
  - Add libvorbis-dev and libgsm1-dev to Build-Depends.
  - Use avcodec_decode_audio2() in source/blender/src/hddaudio.c

[ Alessio Treglia ]
* Add missing previous changelog entries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 2001 Matteo Frigo
 
3
 * Copyright (c) 2001 Massachusetts Institute of Technology
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or modify
 
6
 * it under the terms of the GNU General Public License as published by
 
7
 * the Free Software Foundation; either version 2 of the License, or
 
8
 * (at your option) any later version.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program; if not, write to the Free Software
 
17
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
18
 *
 
19
 */
 
20
 
 
21
/* $Id: bench.h,v 1.15 2006-02-25 02:25:48 athena Exp $ */
 
22
 
 
23
/* benchmark program definitions */
 
24
#include "bench-user.h"
 
25
 
 
26
extern double time_min;
 
27
extern int time_repeat;
 
28
 
 
29
extern void timer_init(double tmin, int repeat);
 
30
extern void bench_fft8(const float *ri, const float *ii, float *ro, float *io,
 
31
                       int is, int os);
 
32
 
 
33
/* report functions */
 
34
extern void (*report)(const bench_problem *p, double *t, int st);
 
35
 
 
36
void report_mflops(const bench_problem *p, double *t, int st);
 
37
void report_time(const bench_problem *p, double *t, int st);
 
38
void report_benchmark(const bench_problem *p, double *t, int st);
 
39
void report_verbose(const bench_problem *p, double *t, int st);
 
40
 
 
41
void report_can_do(const char *param);
 
42
void report_info(const char *param);
 
43
void report_info_all(void);
 
44
 
 
45
extern int aligned_main(int argc, char *argv[]);
 
46
extern int bench_main(int argc, char *argv[]);
 
47
 
 
48
extern void speed(const char *param, int setup_only);
 
49
extern void accuracy(const char *param, int rounds, int impulse_rounds);
 
50
 
 
51
extern double mflops(const bench_problem *p, double t);
 
52
 
 
53
extern double bench_drand(void);
 
54
extern void bench_srand(int seed);
 
55
 
 
56
extern bench_problem *problem_parse(const char *desc);
 
57
 
 
58
extern void ovtpvt(const char *format, ...);
 
59
 
 
60
extern void fftaccuracy(int n, bench_complex *a, bench_complex *ffta,
 
61
                        int sign, double err[6]);
 
62
extern void fftaccuracy_done(void);
 
63
 
 
64
extern void caset(bench_complex *A, int n, bench_complex x);
 
65
extern void aset(bench_real *A, int n, bench_real x);