diff options
Diffstat (limited to 'algorithms')
-rw-r--r-- | algorithms/burning-ship-lattice.c | 2 | ||||
-rw-r--r-- | algorithms/burning-ship.c | 2 | ||||
-rw-r--r-- | algorithms/tricorn.c | 4 |
3 files changed, 4 insertions, 4 deletions
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; } |