aboutsummaryrefslogtreecommitdiff
path: root/src/sets.h
blob: 3dd822781b5fcaaa9946d3188c23aa49475a937e (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
/*
 * sets.h
 *
 *  Created on: 15.01.2018
 *      Author: Superleo1810
 */

#ifndef SETS_H_
#define SETS_H_

#include "defs.h"

#define SFUNC_MANDELBROT_R 0
#define SFUNC_MANDELBROT_S (~0)
#define SFUNC_JULIA_R 1
#define SFUNC_JULIA_S (~1)

#define SFUNC_MANDELBROT SFUNC_MANDELBROT_R
#define SFUNC_JULIA SFUNC_JULIA_R

u32 mandelbrot_s(d64 x, d64 y, u32 iterations);
u32 mandelbrot_r(d64 x, d64 y, u32 iterations);
u32 _mandelbrot_r(d64 x, d64 y, d64 zx, d64 zy, u32 n, u32 iterations, d64 threshold);
u32 julia(d64 x, d64 y, u32 iterations);

#endif /* SETS_H_ */