メインページ | アルファベット順一覧 | 構成 | ファイル一覧 | 構成メンバ | ファイルメンバ | 関連ページ

define.h

説明を見る。
00001 
00014 #ifndef DKUTIL_CSTD_DEFINE_H_FOR_MT
00015 #define DKUTIL_CSTD_DEFINE_H_FOR_MT
00016 
00017 
00018 
00019 //**********************************************************
00020 //ここらへんって32ビット環境依存だから^^;;;;;注意してね^^;;;
00021 //**********************************************************
00022 
00023 //定数を定義する
00025 #define DKINGYO_ULONGLONG_MAX 18446744073709551615 
00026 
00027 #define DKINGYO_LONGLONG_MAX 9223372036854775807 
00028 
00029 #define DKINGYO_LONGLONG_MIN -9223372036854775808 
00030 
00031 #ifndef dkcdUINT8_MAX
00032 #   define dkcdUINT8_MAX 255
00033 #endif
00034 #ifndef dkcdUINT16_MAX
00035 #   define dkcdUINT16_MAX 65535
00036 #endif
00037 #ifndef dkcdUINT32_MAX 
00038 #   define dkcdUINT32_MAX 4294967295
00039 #endif
00040 #ifndef dkcdUINT64_MAX 
00041 #   define dkcdUINT64_MAX DKINGYO_ULONGLONG_MAX
00042 #endif
00043 
00044 /*
00045 
00046 (0xffffffff) unsigned long の最大値 
00047 INT_MAX 2147483647 (signed)  int の最大値 
00048 INT_MIN -2147483647-1 (signed)  int の最小値 
00049 LONG_MAX 2147483647 (signed)  long の最大値 
00050 LONG_MIN -2147483647-1 (signed)  long の最小値 
00051 */
00052 
00053 #ifndef int32
00054 #   define int32 int        
00055 #endif
00056 #ifndef int16
00057 #   define int16 short
00058 #endif
00059 #ifndef int8
00060 #   define int8 char        
00061 #endif
00062 
00063 #ifndef uint32
00064 #   define uint32 unsigned int32        
00065 #endif
00066 #ifndef uint16 
00067 #   define uint16 unsigned int16 
00068 #endif
00069 #ifndef uint8
00070 #   define uint8 unsigned int8
00071 #endif
00072 
00073 
00074 //**********************************************************
00075 //修飾子の定義
00076 //**********************************************************
00077 
00078 #ifdef __cplusplus
00079 #   define DKUTIL_EXTERN extern "C"
00080 #else
00081 
00082 #   define DKUTIL_EXTERN extern
00083 #endif
00084 
00085 
00086 #ifndef DKC_INLINE
00087 #define DKC_HAVE_INLINE 1
00088 //inline
00089 /*
00090 #   if _MSC_VER >= 1100 && defined(_inline)
00091 #       define DKC_INLINE _inline
00092 #   elif defined(__inline)
00093 #       define DKC_INLINE __inline
00094 #   elif defined(inline)
00095 #       define DKC_INLINE inline
00096 */
00097 #   if _MSC_VER >= 1100
00098 #       define DKC_INLINE __inline
00099 #   elif USEINLINE
00100 #       define DKC_INLINE __inline__
00101 #   else
00102 #       define DKC_INLINE
00103 #       undef DKC_HAVE_INLINE
00104 #       define DKC_HAVE_INLINE 0
00105 #   endif
00106 
00107 //forceinline
00108 //# if defined(__forceinline)
00109 #   ifdef FORCEINLINE
00110 #       define DKC_FORCE_INLINE FORCEINLINE
00111 #   elif _MSC_VER >= 1100
00112 #       define DKC_FORCE_INLINE __forceinline
00113 #   else
00114 #       define DKC_FORCE_INLINE DKC_INLINE
00115 #   endif//end of FORCEINLINE
00116 #endif//end of DKC_INLINE
00117 
00118 /*
00119 #ifdef _USRDLL
00120 #   define USE_DKC_DLL
00121 #endif
00122 */
00123 
00124 #ifdef WIN32
00125 #   define DKC_EXPORT __declspec(dllexport)
00126 #   define DKC_IMPORT __declspec(dllimport)
00127 #   ifdef USE_DKC_DLL
00128 #       if defined(DKCDLL_EXPORTS) || defined(DKINGYOMTDLL_EXPORTS)
00129 #           define DKC_EXTERN DKUTIL_EXTERN DKC_EXPORT
00130 #       else
00131 #           define DKC_EXTERN DKUTIL_EXTERN DKC_INPORT
00132 #       endif
00133 #   else
00134 #       ifdef _MSC_VER
00135 #           define DKC_EXTERN DKUTIL_EXTERN DKC_INLINE
00136 #       else
00137 #           define DKC_EXTERN DKUTIL_EXTERN
00138 #       endif
00139 #   endif
00140 #else
00141 #   define DKC_EXPORT
00142 #   define DKC_IMPORT
00143 #   define DKC_EXTERN DKUTIL_EXTERN
00144 #endif
00145 
00146 #ifdef _DEBUG
00147 #   ifndef DEBUG
00148 #       define DEBUG
00149 #   endif
00150 #endif
00151 #ifdef _NDEBUG
00152 #   ifndef NDEBUG
00153 #       define NDEBUG
00154 #   endif
00155 #endif
00156 
00157 //#error "I don't know multithread define..."
00158 #if defined(_MT) || defined(__MT__)//MultiThread
00159 #   define dkcdMultiThread
00160 #endif
00161 #include "os.h"
00162 
00163 #endif //end of include once

dKingyoMersenneTwisterLibraryに対してThu Jan 19 05:10:22 2006に生成されました。  doxygen 1.4.4