CoinUtils  2.9.15
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
CoinTypes.hpp
Go to the documentation of this file.
1 /* $Id: CoinTypes.hpp 1628 2013-09-14 17:43:51Z stefan $ */
2 // Copyright (C) 2004, International Business Machines
3 // Corporation and others. All Rights Reserved.
4 // This code is licensed under the terms of the Eclipse Public License (EPL).
5 
6 #ifndef _CoinTypes_hpp
7 #define _CoinTypes_hpp
8 
9 #include "CoinUtilsConfig.h"
10 /* On some systems, we require stdint.h to have the 64bit integer type defined. */
11 #ifdef COINUTILS_HAS_STDINT_H
12 #include <stdint.h>
13 #endif
14 
15 #define CoinInt64 COIN_INT64_T
16 #define CoinUInt64 COIN_UINT64_T
17 #define CoinIntPtr COIN_INTPTR_T
18 
19 //=============================================================================
20 #ifndef COIN_BIG_INDEX
21 #define COIN_BIG_INDEX 0
22 #endif
23 
24 #if COIN_BIG_INDEX==0
25 typedef int CoinBigIndex;
26 #elif COIN_BIG_INDEX==1
27 typedef long CoinBigIndex;
28 #else
29 typedef long long CoinBigIndex;
30 #endif
31 
32 //=============================================================================
33 #ifndef COIN_BIG_DOUBLE
34 #define COIN_BIG_DOUBLE 0
35 #endif
36 
37 // See if we want the ability to have long double work arrays
38 #if COIN_BIG_DOUBLE==2
39 #undef COIN_BIG_DOUBLE
40 #define COIN_BIG_DOUBLE 0
41 #define COIN_LONG_WORK 1
42 typedef long double CoinWorkDouble;
43 #elif COIN_BIG_DOUBLE==3
44 #undef COIN_BIG_DOUBLE
45 #define COIN_BIG_DOUBLE 1
46 #define COIN_LONG_WORK 1
47 typedef long double CoinWorkDouble;
48 #else
49 #define COIN_LONG_WORK 0
50 typedef double CoinWorkDouble;
51 #endif
52 
53 #if COIN_BIG_DOUBLE==0
54 typedef double CoinFactorizationDouble;
55 #elif COIN_BIG_DOUBLE==1
56 typedef long double CoinFactorizationDouble;
57 #else
58 typedef double CoinFactorizationDouble;
59 #endif
60 
61 #endif
double CoinFactorizationDouble
Definition: CoinTypes.hpp:54
int CoinBigIndex
Definition: CoinTypes.hpp:25
double CoinWorkDouble
Definition: CoinTypes.hpp:50