aboutsummaryrefslogtreecommitdiff
path: root/bship.c
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2015-06-07 11:44:33 +1200
committerDavid Phillips <dbphillipsnz@gmail.com>2015-06-07 11:44:33 +1200
commitd27188d0aecb1bf79fda332abce124a22f722b0b (patch)
treeffd315e2e3fb4d9478ac412b69845ad07ebde50b /bship.c
parent906a9716e07393ffdbf655341035a22b95dd9df8 (diff)
downloadfractal-gen-d27188d0aecb1bf79fda332abce124a22f722b0b.tar.xz
Pulled malloc calls out of threads into main
Diffstat (limited to 'bship.c')
-rw-r--r--bship.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/bship.c b/bship.c
index a9b7be2..f1cab2d 100644
--- a/bship.c
+++ b/bship.c
@@ -8,15 +8,6 @@ void *generate_bship_section(void *section)
double a,b;
double complex z,c;
-
- d->data = malloc((d->size*d->size)/d->cores);
- if (d->data == NULL)
- {
- perror("malloc");
- return NULL;
- }
-
-
for (y = d->core, b = (d->core*(3.5f/d->size)-1.75f); y < d->size; b+=((d->cores*3.5f)/d->size), y+=d->cores)
{
for (x = 0, a = -2.5f; x < d->size; a+=(3.5f/d->size), x++)