8 |
|
|
9 |
|
/* Assumes included after standard.h */ |
10 |
|
|
11 |
+ |
#include <values.h> |
12 |
+ |
|
13 |
|
#define ZERO(x) ((x) < FTINY && (x) > -FTINY) |
14 |
|
#define EQUAL(a,b) ZERO((a) - (b)) |
15 |
|
|
17 |
|
#define TRUE 1 |
18 |
|
#define FALSE 0 |
19 |
|
#endif |
20 |
+ |
|
21 |
+ |
typedef long BCOORD; |
22 |
+ |
typedef long BDIR; |
23 |
+ |
typedef long TINT; |
24 |
+ |
#define BITS_BCOORD (BITS(long)>>1) |
25 |
+ |
#define SHIFT_MAXBCOORD (BITS_BCOORD-2) |
26 |
+ |
#define MAXBCOORD (1L << SHIFT_MAXBCOORD) |
27 |
+ |
#define MAXBCOORD2 (MAXBCOORD>>1) |
28 |
+ |
#define MAXBDIR MAXBCOORD |
29 |
+ |
#define MAXT MAXBCOORD |
30 |
+ |
#define HUGET MAXLONG |
31 |
|
|
32 |
|
#define M_2_3_PI PI*2/3 |
33 |
|
|