mightymandel v16

GPU-based Mandelbrot set explorer

utility.h
Go to the documentation of this file.
1 // mightymandel -- GPU-based Mandelbrot Set explorer
2 // Copyright (C) 2012,2013,2014,2015 Claude Heiland-Allen
3 // License GPL3+ http://www.gnu.org/licenses/gpl.html
4 
5 #ifndef UTILITY_H
6 #define UTILITY_H 1
7 
13 #include <stdbool.h>
14 #include <mpfr.h>
15 
16 int min(int a, int b);
17 int max(int a, int b);
18 int ceil2n(int z);
19 int pxbits(const mpfr_t radius, double height);
20 void pixel_coordinate(mpfr_t x, mpfr_t y, int width, int height, const mpfr_t centerx, const mpfr_t centery, const mpfr_t radius, double i, double j);
21 
22 typedef bool abort_t(void *);
23 
24 #endif