11 #ifndef GAUDIKERNEL_KERNEL_H 12 #define GAUDIKERNEL_KERNEL_H 17 # pragma warning( disable : 4786 ) 20 # pragma warning( disable : 4291 ) 22 # pragma warning( disable : 4250 ) 26 #ifndef NO_LONGLONG_TYPEDEF 32 # define LONGLONG_MAX 0x7FFFFFFFFFFFFFFFLL 35 # define LONGLONG_MIN 0x8000000000000000LL 39 # define ULONGLONG_MAX 0xfFFFFFFFFFFFFFFFLL 42 # define ULONGLONG_MIN 0x0000000000000000LL 47 #if !defined( GAUDI_V20_COMPAT ) || defined( G21_HIDE_SYMBOLS ) 50 # if __GNUC__ >= 4 && !defined( __CINT__ ) 51 # define GAUDI_HASCLASSVISIBILITY 66 # if defined( GAUDI_HASCLASSVISIBILITY ) 67 # define GAUDI_IMPORT __attribute__( ( visibility( "default" ) ) ) 68 # define GAUDI_EXPORT __attribute__( ( visibility( "default" ) ) ) 69 # define GAUDI_LOCAL __attribute__( ( visibility( "hidden" ) ) ) 78 # ifdef GAUDI_LINKER_LIBRARY 79 # define GAUDI_API GAUDI_EXPORT 81 # define GAUDI_API GAUDI_IMPORT 89 #endif // GAUDI_V20_COMPAT 98 #if defined( UNLIKELY ) 101 #if defined( __GNUC__ ) || defined( __clang__ ) 102 # define LIKELY( x ) __builtin_expect( ( x ), 1 ) 103 # define UNLIKELY( x ) __builtin_expect( ( x ), 0 ) 105 # define LIKELY( x ) x 106 # define UNLIKELY( x ) x 113 #if defined( __GNUC__ ) 114 # if defined( __SANITIZE_ADDRESS__ ) 115 # define GAUDI_NO_SANITIZE_ADDRESS __attribute__( ( no_sanitize_address ) ) 118 # define GAUDI_NO_SANITIZE_MEMORY __attribute__( ( no_sanitize_memory ) ) 120 # define GAUDI_NO_SANITIZE_UNDEFINED __attribute__( ( no_sanitize_undefined ) ) 122 # define GAUDI_NO_SANITIZE_THREAD __attribute__( ( no_sanitize_thread ) ) 125 #if defined( __clang__ ) 126 # if __has_feature( address_sanitizer ) 127 # define GAUDI_NO_SANITIZE_ADDRESS __attribute__( ( no_sanitize( "address" ) ) ) 129 # if __has_feature( memory_sanitizer ) 130 # define GAUDI_NO_SANITIZE_MEMORY __attribute__( ( no_sanitize( "memory" ) ) ) 132 # if __has_feature( undefined_sanitizer ) 133 # define GAUDI_NO_SANITIZE_UNDEFINED __attribute__( ( no_sanitize( "undefined" ) ) ) 135 # if __has_feature( thread_sanitizer ) 136 # define GAUDI_NO_SANITIZE_THREAD __attribute__( ( no_sanitize( "thread" ) ) ) 140 #ifndef GAUDI_NO_SANITIZE_ADDRESS 141 # define GAUDI_NO_SANITIZE_ADDRESS 143 #ifndef GAUDI_NO_SANITIZE_MEMORY 144 # define GAUDI_NO_SANITIZE_MEMORY 146 #ifndef GAUDI_NO_SANITIZE_UNDEFINED 147 # define GAUDI_NO_SANITIZE_UNDEFINED 149 #ifndef GAUDI_NO_SANITIZE_THREAD 150 # define GAUDI_NO_SANITIZE_THREAD 166 #define GAUDI_DO_PRAGMA( x ) _Pragma( #x ) 167 #if defined( __clang__ ) 168 # define GAUDI_LOOP_UNROLL( x ) GAUDI_DO_PRAGMA( clang loop unroll_count( x ) ) 169 #elif defined( __GNUC__ ) 170 # define GAUDI_LOOP_UNROLL( x ) GAUDI_DO_PRAGMA( GCC unroll x ) 172 # define GAUDI_LOOP_UNROLL( x ) 176 #endif // GAUDIKERNEL_KERNEL_H
unsigned long long int ulonglong