base random stuff fixed
[physik/morpheus.git] / defines.h
1 /*
2  * morpheus - defines.h
3  *
4  * default parameters and program defines
5  *
6  */
7
8 #define DEFAULT_X_SEG 50
9 #define DEFAULT_Y_SEG 50
10 #define DEFAULT_Z_SEG 100
11
12 #define DEFAULT_SLOPE_NEL 1
13 #define DEFAULT_START_NEL 0
14
15 #define DEFAULT_STEPS 5000
16
17 /* program defines, dont touch ;) */
18
19 #ifdef DEBUG
20  #define DEBUG 1
21 #else
22  #define DEBUG 0
23 #endif
24
25 #define URAND_MAX 0xffffffff
26
27 typedef unsigned int u32;
28 typedef long long unsigned int u64;
29
30 #define printfd(fmt,args...) if(DEBUG) printf(fmt,##args);
31
32 /* segment struct
33  *
34  * not used by now
35  */
36 struct __segment
37 {
38  u32 status; /* C concentration */
39 }
40
41 /* masks for u32 segments */
42 #define AMORPH 0x00000001
43 #define CRYSTAL 0x00000000
44 #define C_CONC_MASK 0xfffffffe
45