diff options
author | David Phillips <dbphillipsnz@gmail.com> | 2016-03-30 00:20:38 +1300 |
---|---|---|
committer | David Phillips <dbphillipsnz@gmail.com> | 2016-03-30 00:20:38 +1300 |
commit | 1d50fb35485583404691d5f30420fa9d494af35f (patch) | |
tree | 27ca535829590b1099b319032b30275fd8940c44 /algorithms/mandelbrot.c | |
parent | b2bc9c90c39b37bf939633d44f717583413e47d9 (diff) | |
download | fractal-gen-1d50fb35485583404691d5f30420fa9d494af35f.tar.xz |
Style and misc updates
Diffstat (limited to 'algorithms/mandelbrot.c')
-rw-r--r-- | algorithms/mandelbrot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/algorithms/mandelbrot.c b/algorithms/mandelbrot.c index 8225d8c..8b59f2f 100644 --- a/algorithms/mandelbrot.c +++ b/algorithms/mandelbrot.c @@ -25,7 +25,7 @@ * SUCH DAMAGE. */ -#include "../fractal-gen.h" +#include "common.h" void *generate_mandelbrot_section(void *section) { @@ -50,7 +50,7 @@ void *generate_mandelbrot_section(void *section) c = a + I*b; for (i = 0; i < iterat; i++) { - if (cabsf(z) >= 2) + if (cabs(z) >= 2) break; z = cpow(z , power) + c; |