From 3fde94e7b3fc9c79c79a5e08bf2e73ef55ecb8a5 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Thu, 19 May 2016 14:51:50 +1200 Subject: Style change --- algorithms/mandelbrot.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'algorithms/mandelbrot.c') diff --git a/algorithms/mandelbrot.c b/algorithms/mandelbrot.c index 2d0a2b4..67da2c6 100644 --- a/algorithms/mandelbrot.c +++ b/algorithms/mandelbrot.c @@ -27,7 +27,8 @@ #include "common.h" -void *generate_mandelbrot_section(void *section) +void +*generate_mandelbrot_section(void *section) { data_section *d = (data_section*)section; unsigned int x,y,i; @@ -41,15 +42,12 @@ void *generate_mandelbrot_section(void *section) /* FIXME document this */ b = clust_id*(size_units/size)+top; /* FIXME document this */ - for (y = clust_id; y < size; y += clust_total) - { + for (y = clust_id; y < size; y += clust_total) { a = d->core*(size_units/size)+left; - for (x = d->core; x < size; x += cores) - { + for (x = d->core; x < size; x += cores) { z = 0; c = a + I*b; - for (i = 0; i < iterat; i++) - { + for (i = 0; i < iterat; i++) { if (cabs(z) >= 2) break; -- cgit v1.1