00001
00002
00003
00004
00005
00006 #ifndef _CoinTypes_hpp
00007 #define _CoinTypes_hpp
00008
00009 #include "CoinUtilsConfig.h"
00010
00011 #define CoinInt64 COIN_INT64_T
00012 #define CoinUInt64 COIN_UINT64_T
00013 #define CoinIntPtr COIN_INTPTR_T
00014
00015
00016 #ifndef COIN_BIG_INDEX
00017 #define COIN_BIG_INDEX 0
00018 #endif
00019
00020 #if COIN_BIG_INDEX==0
00021 typedef int CoinBigIndex;
00022 #elif COIN_BIG_INDEX==1
00023 typedef long CoinBigIndex;
00024 #else
00025 typedef long long CoinBigIndex;
00026 #endif
00027
00028
00029 #ifndef COIN_BIG_DOUBLE
00030 #define COIN_BIG_DOUBLE 0
00031 #endif
00032
00033
00034 #if COIN_BIG_DOUBLE==2
00035 #undef COIN_BIG_DOUBLE
00036 #define COIN_BIG_DOUBLE 0
00037 #define COIN_LONG_WORK 1
00038 typedef long double CoinWorkDouble;
00039 #elif COIN_BIG_DOUBLE==3
00040 #undef COIN_BIG_DOUBLE
00041 #define COIN_BIG_DOUBLE 1
00042 #define COIN_LONG_WORK 1
00043 typedef long double CoinWorkDouble;
00044 #else
00045 #define COIN_LONG_WORK 0
00046 typedef double CoinWorkDouble;
00047 #endif
00048
00049 #if COIN_BIG_DOUBLE==0
00050 typedef double CoinFactorizationDouble;
00051 #elif COIN_BIG_DOUBLE==1
00052 typedef long double CoinFactorizationDouble;
00053 #else
00054 typedef double CoinFactorizationDouble;
00055 #endif
00056
00057 #endif