IceTConfig.h
Go to the documentation of this file.
1 /* -*- c -*- *******************************************************/
2 /*
3  * Copyright (C) 2003 Sandia Corporation
4  * Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
5  * the U.S. Government retains certain rights in this software.
6  *
7  * This source code is released under the New BSD License.
8  */
9 
10 #ifndef __IceTConfig_h
11 #define __IceTConfig_h
12 
13 #ifndef WIN32
14 /* #undef WIN32 */
15 #endif
16 
17 #define ICET_BUILD_SHARED_LIBS
18 
19 #ifdef WIN32
20 #include <windows.h>
21 #endif
22 
23 #if defined(WIN32) && defined(ICET_BUILD_SHARED_LIBS)
24 # ifdef IceTCore_EXPORTS
25 # define ICET_EXPORT __declspec( dllexport )
26 # define ICET_STRATEGY_EXPORT __declspec( dllexport )
27 # else
28 # define ICET_EXPORT __declspec( dllimport )
29 # define ICET_STRATEGY_EXPORT __declspec( dllimport )
30 # endif
31 # ifdef IceTGL_EXPORTS
32 # define ICET_GL_EXPORT __declspec( dllexport )
33 # else
34 # define ICET_GL_EXPORT __declspec( dllimport )
35 # endif
36 # ifdef IceTMPI_EXPORTS
37 # define ICET_MPI_EXPORT __declspec( dllexport )
38 # else
39 # define ICET_MPI_EXPORT __declspec( dllimport )
40 # endif
41 #else /* WIN32 && SHARED_LIBS */
42 # define ICET_EXPORT
43 # define ICET_GL_EXPORT
44 # define ICET_STRATEGY_EXPORT
45 # define ICET_MPI_EXPORT
46 #endif /* WIN32 && SHARED_LIBS */
47 
48 #define ICET_MAJOR_VERSION 2
49 #define ICET_MINOR_VERSION 2
50 #define ICET_PATCH_VERSION 0
51 #define ICET_VERSION "2.2.0"
52 
53 #define ICET_SIZEOF_CHAR 1
54 #define ICET_SIZEOF_SHORT 2
55 #define ICET_SIZEOF_INT 4
56 #define ICET_SIZEOF_LONG 8
57 #define ICET_SIZEOF_LONG_LONG 8
58 /* #undef ICET_SIZEOF___INT64 */
59 #define ICET_SIZEOF_FLOAT 4
60 #define ICET_SIZEOF_DOUBLE 8
61 #define ICET_SIZEOF_VOID_P 8
62 
63 #if ICET_SIZEOF_CHAR == 1
64 typedef char IceTInt8;
65 typedef unsigned char IceTUnsignedInt8;
66 #else
67 #error "No valid data type for 8 bit integers found."
68 #endif
69 
70 #if ICET_SIZEOF_SHORT == 2
71 typedef short IceTInt16;
72 typedef unsigned short IceTUnsignedInt16;
73 #else
74 #error "No valid data type for 16 bit integers founds."
75 #endif
76 
77 #if ICET_SIZEOF_INT == 4
78 typedef int IceTInt32;
79 typedef unsigned int IceTUnsignedInt32;
80 #elif ICET_SIZEOF_LONG == 4
81 typedef long IceTInt32;
82 typedef unsigned long IceTUnsignedInt32;
83 #elif ICET_SIZEOF_SHORT == 4
84 typedef short IceTInt32;
85 typedef unsigned short IceTUnsignedInt32;
86 #else
87 #error "No valid data type for 32 bit integers found."
88 #endif
89 
90 #if ICET_SIZEOF_INT == 8
91 typedef int IceTInt64;
92 typedef unsigned int IceTUnsignedInt64;
93 #elif ICET_SIZEOF_LONG == 8
94 typedef long IceTInt64;
95 typedef unsigned long IceTUnsignedInt64;
96 #elif defined(ICET_SIZEOF_LONG_LONG) && (ICET_SIZEOF_LONG_LONG == 8)
97 typedef long long IceTInt64;
98 typedef unsigned long long IceTUnsignedInt64;
99 #elif defined(ICET_SIZEOF___INT64) && (ICET_SIZEOF___INT64 == 8)
100 typedef __int64 IceTInt64;
101 typedef unsigned __int64 IceTUnsignedInt64;
102 #else
103 #error "No valid data type for 64 bit integers found."
104 #endif
105 
106 #if ICET_SIZEOF_FLOAT == 4
107 typedef float IceTFloat32;
108 #else
109 #error "No valid data type for 32 bit floating point found."
110 #endif
111 
112 #if ICET_SIZEOF_DOUBLE == 8
113 typedef double IceTFloat64;
114 #else
115 #error "No valid data type for 64 bit floating point found."
116 #endif
117 
118 #if ICET_SIZEOF_VOID_P == 4
120 #elif ICET_SIZEOF_VOID_P == 8
122 #else
123 #error "Unexpected pointer size."
124 #endif
125 
126 #define ICET_MAGIC_K_DEFAULT 8
127 #define ICET_MAX_IMAGE_SPLIT_DEFAULT 500000
128 
129 /* #undef ICET_USE_MPE */
130 
131 #endif /*__IceTConfig_h*/
unsigned short IceTUnsignedInt16
Definition: IceTConfig.h:72
IceTInt64 IceTPointerArithmetic
Definition: IceTConfig.h:121
unsigned long IceTUnsignedInt64
Definition: IceTConfig.h:95
double IceTFloat64
Definition: IceTConfig.h:113
int IceTInt32
Definition: IceTConfig.h:78
unsigned char IceTUnsignedInt8
Definition: IceTConfig.h:65
float IceTFloat32
Definition: IceTConfig.h:107
short IceTInt16
Definition: IceTConfig.h:71
unsigned int IceTUnsignedInt32
Definition: IceTConfig.h:79
char IceTInt8
Definition: IceTConfig.h:64
long IceTInt64
Definition: IceTConfig.h:94