From 1d50fb35485583404691d5f30420fa9d494af35f Mon Sep 17 00:00:00 2001 From: David Phillips Date: Wed, 30 Mar 2016 00:20:38 +1300 Subject: Style and misc updates --- algorithms/burning-ship.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'algorithms/burning-ship.c') diff --git a/algorithms/burning-ship.c b/algorithms/burning-ship.c index c36c8c5..5c7d2e3 100644 --- a/algorithms/burning-ship.c +++ b/algorithms/burning-ship.c @@ -25,7 +25,7 @@ * SUCH DAMAGE. */ -#include "../fractal-gen.h" +#include "common.h" void *generate_burning_ship_section(void *section) { @@ -49,10 +49,10 @@ void *generate_burning_ship_section(void *section) c = a+I*b; for (i = 0; i < iterat; i++) { - if (cabsf(z) >= 2) + if (cabs(z) >= 2) break; - z = cpow( cabsf(crealf(z)) + I*cabsf(cimagf(z)) , power) + c; + z = cpow( fabs(creal(z)) + I*fabs(cimag(z)) , power) + c; } d->data[d->idx++] = (255*i)/iterat; a += (clust_total*size_units)/size; -- cgit v1.1