| OLD | NEW |
| 1 #ifndef BENCHFRAMEWORK_H | 1 #ifndef BENCHFRAMEWORK_H |
| 2 #define BENCHFRAMEWORK_H | 2 #define BENCHFRAMEWORK_H |
| 3 | 3 |
| 4 #ifdef __cplusplus | 4 #ifdef __cplusplus |
| 5 extern "C" { | 5 extern "C" { |
| 6 #endif | 6 #endif |
| 7 | 7 |
| 8 #define MAX_BENCHMARKS 8 | 8 #define MAX_BENCHMARKS 16 |
| 9 | 9 |
| 10 typedef int (*bench_function)(int); | 10 typedef int (*bench_function)(int); |
| 11 typedef int (*report_function)(char *, ...); | 11 typedef int (*report_function)(char *, ...); |
| 12 | 12 |
| 13 typedef struct _bench_info { | 13 typedef struct _bench_info { |
| 14 char *name; | 14 char *name; |
| 15 bench_function run; | 15 bench_function run; |
| 16 int time_ref; | 16 int time_ref; |
| 17 int param; | 17 int param; |
| 18 } bench_info; | 18 } bench_info; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 33 /* Benchmark entry points */ | 33 /* Benchmark entry points */ |
| 34 int run_fannkuch(int p); | 34 int run_fannkuch(int p); |
| 35 int run_fasta(int p); | 35 int run_fasta(int p); |
| 36 int run_revcomp(int ignored); | 36 int run_revcomp(int ignored); |
| 37 int run_binarytrees(int p); | 37 int run_binarytrees(int p); |
| 38 int run_knucleotide(int ignored); | 38 int run_knucleotide(int ignored); |
| 39 int run_nbody(int p); | 39 int run_nbody(int p); |
| 40 int run_pidigits(int p); | 40 int run_pidigits(int p); |
| 41 int run_spectralnorm(int p); | 41 int run_spectralnorm(int p); |
| 42 | 42 |
| 43 int run_richards(int p); |
| 44 int run_deltablue(int p); |
| 45 |
| 43 enum benchmark_size_t { kBenchmarkSmall, kBenchmarkLarge }; | 46 enum benchmark_size_t { kBenchmarkSmall, kBenchmarkLarge }; |
| 44 | 47 |
| 45 int framework_main(enum benchmark_size_t size); | 48 int framework_main(enum benchmark_size_t size); |
| 46 void ReportStatus(const char *format, ...); | 49 void ReportStatus(const char *format, ...); |
| 47 | 50 |
| 48 //#define memcpy(d, s, n) __builtin_memcpy ((d), (s), (n)) | 51 //#define memcpy(d, s, n) __builtin_memcpy ((d), (s), (n)) |
| 49 | 52 |
| 50 #ifdef __cplusplus | 53 #ifdef __cplusplus |
| 51 } | 54 } |
| 52 #endif | 55 #endif |
| 53 | 56 |
| 54 #endif | 57 #endif |
| OLD | NEW |