diff options
author | David Phillips <dbphillipsnz@gmail.com> | 2015-07-28 21:43:31 +1200 |
---|---|---|
committer | David Phillips <dbphillipsnz@gmail.com> | 2015-07-28 21:43:31 +1200 |
commit | 2ad2848d4ee3a9bda31b0e41d05fa9dcdc48ab54 (patch) | |
tree | a19927e843629ea4da22f9b18dd0dfe51330a9ae /algorithms | |
parent | 5de1d4d587ab2a655163f52d292a3eb982886331 (diff) | |
download | fractal-gen-2ad2848d4ee3a9bda31b0e41d05fa9dcdc48ab54.tar.xz |
This never happened...
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; } |