brotmap / brotmap.h

// MandelMap - Ben Bass 2010-2012

#ifndef MANDEL_MAP_H
#define MANDEL_MAP_H


typedef double FLOAT;

const int NUM_THREADS = 2;
const int MAX_ITER=1024;

struct pinfo
    FLOAT x;
    union {
      FLOAT y;
      long itercount;

const int HEADER_LEN=4096;  // probable page size for happiness
struct brotfile_header
    FLOAT startx;
    FLOAT starty;
    int binary_digits;
    int max_iter;

long mpoint(FLOAT r,
            FLOAT i,
            pinfo* p,
            int old_max_iter=0);
void* worker_start(void* arg);
void worker_run(pinfo* fptr, const FLOAT step);

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.