diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2012-01-27 09:59:57 -0200 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2012-01-27 09:59:57 -0200 |
commit | b2e6f23b7be1154227276f42c0fd59eaa1a07d52 (patch) | |
tree | 6e15dc531407d4f59be22a0814ebc39ff34542bc /includes/benchmark.h | |
parent | cd7e7199a885327e4594e88b9b3fdddbb8fd2cee (diff) |
Fix weird results in benchmark values
gcc was (correctly) assuming that benchmark_parallel_for() returned
an integer, which was being to a double and messing up results. Added
the missing prototype.
Also, populate bench_results array with sane values on module init.
Some other minor cleanups in benchmark code.
Diffstat (limited to 'includes/benchmark.h')
-rw-r--r-- | includes/benchmark.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/benchmark.h b/includes/benchmark.h index 5f72874a..8047d5c6 100644 --- a/includes/benchmark.h +++ b/includes/benchmark.h @@ -25,6 +25,9 @@ void benchmark_gui(void); void benchmark_nqueens(void); void benchmark_raytrace(void); +gdouble benchmark_parallel_for(guint start, guint end, + gpointer callback, gpointer callback_data); + extern gdouble bench_results[BENCHMARK_N_ENTRIES]; #endif /* __BENCHMARK_H__ */
\ No newline at end of file |