equal
deleted
inserted
replaced
|
1 /* This file was autogenerated by Premake */ |
|
2 #ifndef _ODE_CONFIG_H_ |
|
3 #define _ODE_CONFIG_H_ |
|
4 |
|
5 |
|
6 /****************************************************************** |
|
7 * CONFIGURATON SETTINGS - you can change these, and then rebuild |
|
8 * ODE to modify the behavior of the library. |
|
9 ******************************************************************/ |
|
10 |
|
11 #define dSINGLE |
|
12 |
|
13 #define dUSE_MALLOC_FOR_ALLOCA |
|
14 |
|
15 #ifndef ODE_API |
|
16 #define ODE_API |
|
17 #endif |
|
18 |
|
19 |
|
20 /* Pull in the standard headers */ |
|
21 #include <stdio.h> |
|
22 #include <stdlib.h> |
|
23 #include <stdarg.h> |
|
24 #include <math.h> |
|
25 #include <string.h> |
|
26 //#include <float.h> |
|
27 |
|
28 |
|
29 /* Define a value for infinity */ |
|
30 /*#define ODE_INFINITY4 1.7976931348623157E+308//HUGE_VALF |
|
31 |
|
32 #define dInfinity ODE_INFINITY4 |
|
33 #define dEpsilon FLT_EPSILON*/ |
|
34 |
|
35 typedef int int32; |
|
36 typedef long long int int64; |
|
37 |
|
38 |
|
39 /* An integer type that can be safely cast to a pointer. This definition |
|
40 * should be safe even on 64-bit systems */ |
|
41 typedef size_t intP; |
|
42 |
|
43 |
|
44 /* The efficient alignment. most platforms align data structures to some |
|
45 * number of bytes, but this is not always the most efficient alignment. |
|
46 * for example, many x86 compilers align to 4 bytes, but on a pentium it is |
|
47 * important to align doubles to 8 byte boundaries (for speed), and the 4 |
|
48 * floats in a SIMD register to 16 byte boundaries. many other platforms have |
|
49 * similar behavior. setting a larger alignment can waste a (very) small |
|
50 * amount of memory. NOTE: this number must be a power of two. */ |
|
51 #define EFFICIENT_ALIGNMENT 16 |
|
52 |
|
53 #endif |