diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2024-04-26 16:53:09 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2024-04-26 16:53:09 -0400 |
| commit | 3063b6ffd771f68183e76185761bcbc91110ca0b (patch) | |
| tree | 7342a10069fbaa62e6c260bd9981087709868c09 /src/fractals.h | |
| parent | aaa64e36cd5ac1cc6077d38505c645f4c316b78e (diff) | |
changed max iterations to byte to allow larger grids
Diffstat (limited to 'src/fractals.h')
| -rw-r--r-- | src/fractals.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/fractals.h b/src/fractals.h index 1c745d9..b31b15f 100644 --- a/src/fractals.h +++ b/src/fractals.h @@ -1,5 +1,6 @@ #pragma once +#include <stdint.h> #ifndef __NVCC__ #include <complex.h> #endif @@ -18,12 +19,12 @@ typedef union { typedef void (*fractal_generator)(grid_t* , const grid_gen_params* ); #ifndef __NVCC__ -size_t mandelbrot(const CBASE complex z0, const size_t max_iterations); -size_t tricorn(const CBASE complex z0, const size_t max_iterations); -size_t burning_ship(const CBASE complex z0, const size_t max_iterations); -size_t multibrot(const CBASE complex z0, const size_t max_iterations, const double d); -size_t multicorn(const CBASE complex z0, const size_t max_iterations, const double d); -size_t julia(const CBASE complex z0, const CBASE complex c, const size_t max_iterations, const double R); +byte mandelbrot(const CBASE complex z0, const byte max_iterations); +byte tricorn(const CBASE complex z0, const byte max_iterations); +byte burning_ship(const CBASE complex z0, const byte max_iterations); +byte multibrot(const CBASE complex z0, const byte max_iterations, const double d); +byte multicorn(const CBASE complex z0, const byte max_iterations, const double d); +byte julia(const CBASE complex z0, const CBASE complex c, const byte max_iterations, const double R); #endif #ifdef __cplusplus |
