diff options
author | David Phillips <david@sighup.nz> | 2016-10-26 16:02:06 +1300 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2016-10-26 16:04:18 +1300 |
commit | 253ecc8d4f6aaaa4a7f86f713d1c485dac8eda78 (patch) | |
tree | c69e9ea4f4e504ef500315e77a31752cd36e3759 /algorithms | |
parent | 22ccf34f4960b355d55e2aad14008a4c50e65197 (diff) | |
download | fractal-gen-253ecc8d4f6aaaa4a7f86f713d1c485dac8eda78.tar.xz |
Rename cores => threads
Diffstat (limited to 'algorithms')
-rw-r--r-- | algorithms/burning-ship.c | 4 | ||||
-rw-r--r-- | algorithms/mandelbrot.c | 4 |
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); } |