From 2ad2848d4ee3a9bda31b0e41d05fa9dcdc48ab54 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Tue, 28 Jul 2015 21:43:31 +1200 Subject: This never happened... --- algorithms/burning-ship-lattice.c | 2 +- algorithms/burning-ship.c | 2 +- algorithms/tricorn.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'algorithms') diff --git a/algorithms/burning-ship-lattice.c b/algorithms/burning-ship-lattice.c index 7c2d1e9..b197ac7 100644 --- a/algorithms/burning-ship-lattice.c +++ b/algorithms/burning-ship-lattice.c @@ -39,7 +39,7 @@ void *generate_burning_ship_lattice_section(void *section) for (y = d->core, b = (d->core*(size_units/size)+top); y < size; b+=((cores*size_units)/size), y+=cores) { - for (x = 0, a = left; x < size; a+=(size_units/size), x++) + for (x = clust_id, a = (clust_id*(size_units/size)+left); x < size; a+=((clust_total*size_units)/size), x+=clust_total) { z = 0; c = a+I*b; diff --git a/algorithms/burning-ship.c b/algorithms/burning-ship.c index 8a5d1a1..1dcafac 100644 --- a/algorithms/burning-ship.c +++ b/algorithms/burning-ship.c @@ -39,7 +39,7 @@ void *generate_burning_ship_section(void *section) for (y = d->core, b = (d->core*(size_units/size)+top); y < size; b+=((cores*size_units)/size), y+=cores) { - for (x = 0, a = left; x < size; a+=(size_units/size), x++) + for (x = clust_id, a = (clust_id*(size_units/size)+left); x < size; a+=((clust_total*size_units)/size), x+=clust_total) { z = 0; c = a+I*b; diff --git a/algorithms/tricorn.c b/algorithms/tricorn.c index c89420a..07a0d3c 100644 --- a/algorithms/tricorn.c +++ b/algorithms/tricorn.c @@ -39,7 +39,7 @@ void *generate_tricorn_section(void *section) for (y = d->core, b = (d->core*(size_units/size)+top); y < size; b+=((cores*size_units)/size), y+=cores) { - for (x = 0, a = left; x < size; a+=(size_units/size), x++) + for (x = clust_id, a = (clust_id*(size_units/size)+left); x < size; a+=((clust_total*size_units)/size), x+=clust_total) { z = 0; c = a+I*b; @@ -48,7 +48,7 @@ void *generate_tricorn_section(void *section) if (cabsf(z) >= 2) break; - z = cpow(conj(z) , power) + c; + z = cpow(z , power) + c; } d->data[d->idx++] = (255*i)/iterat; } -- cgit v1.1