aboutsummaryrefslogtreecommitdiff
path: root/fractal-gen.h
diff options
context:
space:
mode:
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