aboutsummaryrefslogtreecommitdiff
path: root/algorithms
diff options
context:
space:
mode:
Diffstat (limited to 'algorithms')
-rw-r--r--algorithms/burning-ship.c4
-rw-r--r--algorithms/mandelbrot.c4
2 files changed, 4 insertions, 4 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);
}
diff --git a/algorithms/mandelbrot.c b/algorithms/mandelbrot.c
index 33d7cde..e55b3e0 100644
--- a/algorithms/mandelbrot.c
+++ b/algorithms/mandelbrot.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(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);
}