From b2e6f23b7be1154227276f42c0fd59eaa1a07d52 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Fri, 27 Jan 2012 09:59:57 -0200 Subject: 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. --- includes/benchmark.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'includes/benchmark.h') 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 -- cgit v1.2.3