summaryrefslogtreecommitdiff
path: root/perf/cairo-perf-diff-files.c
diff options
context:
space:
mode:
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2010-06-24 14:59:18 +0300
committerM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2010-06-24 15:02:53 +0300
commitb036a09972a19e63a85a4661a457525e2abe4026 (patch)
tree660c24352ee1e32b10556c3938bee09964d9a45a /perf/cairo-perf-diff-files.c
parent616e35d1fae703dc118ce503d25d4f57cfd16dfd (diff)
downloadcairo-b036a09972a19e63a85a4661a457525e2abe4026.tar.gz
whitespace: Fixup formal arguments and tabs in boilerplate/ and perf/.
Ran a script to align the formal parameters of functions and collapse spaces to tabs in code.
Diffstat (limited to 'perf/cairo-perf-diff-files.c')
-rw-r--r--perf/cairo-perf-diff-files.c37
1 files changed, 21 insertions, 16 deletions
diff --git a/perf/cairo-perf-diff-files.c b/perf/cairo-perf-diff-files.c
index 056d7ece9..43bf9baae 100644
--- a/perf/cairo-perf-diff-files.c
+++ b/perf/cairo-perf-diff-files.c
@@ -49,7 +49,8 @@ typedef struct _cairo_perf_diff_files_args {
} cairo_perf_diff_files_args_t;
static int
-test_diff_cmp_speedup_before_slowdown (const void *a, const void *b)
+test_diff_cmp_speedup_before_slowdown (const void *a,
+ const void *b)
{
const test_diff_t *a_diff = a;
const test_diff_t *b_diff = b;
@@ -83,7 +84,8 @@ test_diff_cmp_speedup_before_slowdown (const void *a, const void *b)
}
static int
-test_diff_cmp (const void *a, const void *b)
+test_diff_cmp (const void *a,
+ const void *b)
{
const test_diff_t *a_diff = a;
const test_diff_t *b_diff = b;
@@ -101,7 +103,9 @@ test_diff_cmp (const void *a, const void *b)
#define CHANGE_BAR_WIDTH 70
static void
-print_change_bar (double change, double max_change, int use_utf)
+print_change_bar (double change,
+ double max_change,
+ int use_utf)
{
int units_per_cell = ceil (max_change / CHANGE_BAR_WIDTH);
static char const *ascii_boxes[8] = {
@@ -146,9 +150,9 @@ print_change_bar (double change, double max_change, int use_utf)
}
static void
-test_diff_print_binary (test_diff_t *diff,
- double max_change,
- cairo_perf_report_options_t *options)
+test_diff_print_binary (test_diff_t *diff,
+ double max_change,
+ cairo_perf_report_options_t *options)
{
printf ("%5s-%-4s %26s-%-3d %6.2f (%.2f %4.2f%%) -> %6.2f (%.2f %4.2f%%): %5.2fx ",
diff->tests[0]->backend, diff->tests[0]->content,
@@ -172,9 +176,9 @@ test_diff_print_binary (test_diff_t *diff,
}
static void
-test_diff_print_multi (test_diff_t *diff,
- double max_change,
- cairo_perf_report_options_t *options)
+test_diff_print_multi (test_diff_t *diff,
+ double max_change,
+ cairo_perf_report_options_t *options)
{
int i;
double test_time;
@@ -205,9 +209,9 @@ test_diff_print_multi (test_diff_t *diff,
#define MAX(a,b) ((a) > (b) ? (a) : (b))
static void
-cairo_perf_reports_compare (cairo_perf_report_t *reports,
- int num_reports,
- cairo_perf_report_options_t *options)
+cairo_perf_reports_compare (cairo_perf_report_t *reports,
+ int num_reports,
+ cairo_perf_report_options_t *options)
{
int i;
test_report_t **tests, *min_test;
@@ -399,9 +403,9 @@ usage (const char *argv0)
}
static void
-parse_args(int argc,
- char const **argv,
- cairo_perf_diff_files_args_t *args)
+parse_args (int argc,
+ char const **argv,
+ cairo_perf_diff_files_args_t *args)
{
int i;
@@ -442,7 +446,8 @@ parse_args(int argc,
}
int
-main (int argc, const char *argv[])
+main (int argc,
+ const char *argv[])
{
cairo_perf_diff_files_args_t args = {
NULL, /* filenames */