aboutsummaryrefslogtreecommitdiff
path: root/algorithms/burning-ship.c
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2016-10-26 16:02:06 +1300
committerDavid Phillips <david@sighup.nz>2016-10-26 16:04:18 +1300
commit253ecc8d4f6aaaa4a7f86f713d1c485dac8eda78 (patch)
treec69e9ea4f4e504ef500315e77a31752cd36e3759 /algorithms/burning-ship.c
parent22ccf34f4960b355d55e2aad14008a4c50e65197 (diff)
downloadfractal-gen-253ecc8d4f6aaaa4a7f86f713d1c485dac8eda78.tar.xz
Rename cores => threads
Diffstat (limited to 'algorithms/burning-ship.c')
-rw-r--r--algorithms/burning-ship.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/algorithms/burning-ship.c b/algorithms/burning-ship.c
index 6f8c9d9..43f645f 100644
--- a/algorithms/burning-ship.c
+++ b/algorithms/burning-ship.c
@@ -49,7 +49,7 @@ void
for (y = clust_id; y < size; y += clust_total) {
a = d->core*(f->scale/size)+left;
- for (x = d->core; x < size; x += cores) {
+ for (x = d->core; x < size; x += threads) {
z = 0;
c = a+I*b;
for (i = 0; i < iterat; i++) {
@@ -59,7 +59,7 @@ void
z = cpow( fabs(creal(z)) + I*fabs(cimag(z)) , power) + c;
}
d->data[d->idx++] = (255*i)/iterat;
- a += cores*(f->scale/size);
+ a += threads*(f->scale/size);
}
b += clust_total*(f->scale/size);
}