Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-17 07:51:36

0001 // int *      signed, signed int   System dependent
0002 // unsigned int      *      unsigned      System dependent
0003 //__int8      1      char, signed char    -128 to 127
0004 //__int16     2      short, short int, signed short int -32,768 to 32,767
0005 //__int32     4      signed, signed int   -2,147,483,648 to 2,147,483,647
0006 //__int64     8      none   -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
0007 //char 1      signed char   -128 to 127
0008 //unsigned char      1      none   0 to 255
0009 //short       2      short int, signed short int -32,768 to 32,767
0010 //unsigned short     2      unsigned short int   0 to 65,535
0011 //long 4      long int, signed long int   -2,147,483,648 to 2,147,483,647
0012 //unsigned long      4      unsigned long int    0 to 4,294,967,295
0013 //enum *      none   Same as int
0014 //float       4      none   3.4E +/- 38 (7 digits)
0015 //double      8      none   1.7E +/- 308 (15 digits)
0016 //long double 10     none   1.2E +/- 4932 (19 digits)
0017 
0018 #ifndef IAEA_CONFIG
0019 #define IAEA_CONFIG
0020 
0021 #if (defined WIN32) || (defined WIN64)
0022 #include <windows.h>
0023 #endif
0024 /* Without the above include file, gcc on Windows does not know about
0025    __int64
0026  */
0027 
0028 #ifdef DOUBLE
0029 typedef double IAEA_Float;
0030 #else
0031 typedef float  IAEA_Float;
0032 #endif
0033 
0034 typedef short IAEA_I16;
0035 // typedef long  IAEA_I32; // RCN changed int to long to allow storage of EGS LATCH, Dec. 2006
0036 typedef  int  IAEA_I32;    // Changed back on April 2011, following Daniel OBrien's comments
0037                            // It also corresponds to EGSnrc definition (see egs_config1.h file)
0038 //typedef __int64 IAEA_I64;
0039 #if (defined WIN32) || (defined WIN64)
0040 typedef __int64 IAEA_I64;
0041 #else
0042 #if defined NO_LONG_LONG || defined LONG_IS_64
0043 typedef long IAEA_I64;
0044 #else
0045 typedef long long IAEA_I64;
0046 #endif
0047 #endif
0048 
0049 #ifdef __cplusplus
0050 #define IAEA_EXTERN_C extern "C"
0051 #else
0052 #define IAEA_EXTERN_C extern
0053 #endif
0054 
0055 #if (defined WIN32) || (defined WIN64)
0056 
0057 #ifdef BUILD_DLL
0058 #define IAEA_EXPORT __declspec(dllexport)
0059 #elif defined USE_DLL
0060 #define IAEA_EXPORT __declspec(dllimport)
0061 #else
0062 #define IAEA_EXPORT
0063 #endif
0064 #define IAEA_LOCAL
0065 
0066 #else
0067 
0068 #ifdef HAVE_VISIBILITY
0069 #define IAEA_EXPORT __attribute__ ((visibility ("default")))
0070 #define IAEA_LOCAL  __attribute__ ((visibility ("hidden")))
0071 #else
0072 #define IAEA_EXPORT
0073 #define IAEA_LOCAL
0074 #endif
0075 
0076 #endif
0077 
0078 #endif
0079 
0080