aboutsummaryrefslogtreecommitdiff
path: root/fractal-gen.h
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2015-06-06 23:11:34 +1200
committerDavid Phillips <dbphillipsnz@gmail.com>2015-06-06 23:11:34 +1200
commit7b5eb54e54aad01383912d2e67b996402eb9a602 (patch)
treef26e094dc944fb13a9035ad7c3d77e62d36c0e44 /fractal-gen.h
parenta157d1890add21eceddae2adee6213f302bc1bd2 (diff)
downloadfractal-gen-7b5eb54e54aad01383912d2e67b996402eb9a602.tar.xz
Updated Makefile, added missing files
Diffstat (limited to 'fractal-gen.h')
-rw-r--r--fractal-gen.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/fractal-gen.h b/fractal-gen.h
new file mode 100644
index 0000000..99d41ff
--- /dev/null
+++ b/fractal-gen.h
@@ -0,0 +1,28 @@
+#ifndef FRACTAL_GEN_H
+#define FRACTAL_GEN_H
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <complex.h>
+#include <math.h>
+#include <unistd.h>
+#include <pthread.h>
+#include <assert.h>
+
+typedef struct
+{
+ unsigned int core;
+ unsigned int cores;
+ unsigned int size;
+ double power;
+ unsigned int iterat;
+ char* data;
+ pthread_t thread;
+} data_section;
+
+void *generate_mbrot_section(void *d);
+void *generate_bship_section(void *d);
+
+
+#endif