PandA-2024.02
Macros | Functions | Variables
mandelbrot.c File Reference
#include <stdio.h>
Include dependency graph for mandelbrot.c:

Go to the source code of this file.

Macros

#define DECIMAL_PLACES   28
 
#define int2fixed(num)   ((num) << DECIMAL_PLACES)
 
#define fixedmul(a, b)   ((((long long)a) * ((long long)b)) >> DECIMAL_PLACES)
 
#define fixed2int(num)   ((num) >> DECIMAL_PLACES)
 
#define WIDTH   128
 
#define HEIGHT   128
 
#define MAX_ITER   50
 
#define LEGUP   1
 

Functions

int mandelbrot ()
 
int main ()
 

Variables

volatile unsigned char img [WIDTH][HEIGHT]
 

Macro Definition Documentation

◆ DECIMAL_PLACES

#define DECIMAL_PLACES   28

Definition at line 7 of file mandelbrot.c.

◆ fixed2int

#define fixed2int (   num)    ((num) >> DECIMAL_PLACES)

Definition at line 10 of file mandelbrot.c.

◆ fixedmul

#define fixedmul (   a,
 
)    ((((long long)a) * ((long long)b)) >> DECIMAL_PLACES)

Definition at line 9 of file mandelbrot.c.

Referenced by mandelbrot().

◆ HEIGHT

#define HEIGHT   128

Definition at line 13 of file mandelbrot.c.

Referenced by mandelbrot().

◆ int2fixed

#define int2fixed (   num)    ((num) << DECIMAL_PLACES)

Definition at line 8 of file mandelbrot.c.

Referenced by mandelbrot().

◆ LEGUP

#define LEGUP   1

Definition at line 18 of file mandelbrot.c.

◆ MAX_ITER

#define MAX_ITER   50

Definition at line 16 of file mandelbrot.c.

Referenced by mandelbrot().

◆ WIDTH

#define WIDTH   128

Definition at line 12 of file mandelbrot.c.

Referenced by mandelbrot().

Function Documentation

◆ main()

int main ( void  )

Definition at line 57 of file mandelbrot.c.

References mandelbrot().

Here is the call graph for this function:

◆ mandelbrot()

int mandelbrot ( )

Definition at line 22 of file mandelbrot.c.

References fixedmul, HEIGHT, img, int2fixed, MAX_ITER, WIDTH, and x.

Referenced by main().

Here is the caller graph for this function:

Variable Documentation

◆ img

volatile unsigned char img[WIDTH][HEIGHT]

Definition at line 20 of file mandelbrot.c.

Referenced by fft(), main(), mandelbrot(), and print_image().


Generated on Mon Feb 12 2024 13:03:09 for PandA-2024.02 by doxygen 1.8.13