-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.h
95 lines (88 loc) · 2.35 KB
/
config.h
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#ifndef CONFIG_H
#define CONFIG_H
/*#define I_WAS_HERE *//*uncoment this to disable changing of parameters by atoconf */
#define DEFAULT_MAX_ITER 170
/*default number of iterations should be set
lower for slow computers */
#define FPOINT_TYPE double
/*floating point math type on computers
with medium speed floating point math should
use float instead */
#define USE_LONG /*for autoconf..undefine if
fpoint_type is set to other than
long_double */
/*#define MITSHM */
/*undefine this if you system does not
support shared memory */
#define MAXSTEP 0.008
/*zooming step. For slow computer should
be set lower. Longer steps takes more time
and invoke yet longer ones etc.. */
#define XSIZE 320
/*default sizes of window */
#define YSIZE 200
#define ROTATIONSPEED -7
#ifdef __DJGPP__
#include "aconfig.dos"
#else
#include "aconfig.h"
#endif
#if !defined(HAVE_LONG_DOUBLE)&&!defined(I_WAS_HERE)
#undef FPOINT_TYPE
#define FPOINT_TYPE double
#endif
#define CONST const
#define INLINE inline
#ifdef __GNUC__
#define myfabs(x) fabs(x)
#ifndef __STRICT_ANSI__
#define CONSTF __attribute__ ((const))
#define REGISTERS(n) __attribute__ ((regparm(n)))
#else
#define CONSTF
#define REGISTERS(n)
#endif
#else
#define myfabs(x) ((x)>0?(x):-(x))
#define CONSTF
#define REGISTERS(n)
#endif
#ifdef HAVE_MOUSEMASK
#define NCURSESMOUSE
#endif
#ifndef HAVE_LIMITS_H
#define INT_MAX 2127423647
#endif
/*some constatnts used by various parts of XaoS */
#undef DEBUG
#ifndef DEBUG
#define NDEBUG
#endif
#define FRAMERATE 20
#define LOOKSIZE 2
/*size explored by autopilot */
#define MAXTIME 50
/*maximum zooming time to one direction */
#define NGUESSES1 40
/*maximum number of guesses using first
method */
#define NGUESSES2 1000
/*maximum number of guesses using second
method */
#define STEP 0.0006
/*speedup */
#define SPEEDUP 1.05
/*speedup of speedup */
/*Don't change following lines */
#undef SCROLLING /* color scrolling is broken for now */
#define SIFT (26) /*fixed point parameters */
#define MAXCOLORS 256 /*number of colors */
#define MUL (1<<SIFT)
extern int MAXITER;
typedef FPOINT_TYPE number_t;
#ifdef STATISTICS
#define STAT(x) x
#else
#define STAT(x)
#endif
#endif /*CONFIG_H */