aboutsummaryrefslogtreecommitdiff
path: root/fractal-gen.h
blob: e7106063201009f152583abc963e453fe0569ae5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef FRACTAL_GEN_H
#define FRACTAL_GEN_H

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libgen.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