1 #ifndef GAUDIKERNEL_KERNEL_H 2 #define GAUDIKERNEL_KERNEL_H 7 # pragma warning( disable : 4786 ) 10 # pragma warning( disable : 4291 ) 12 # pragma warning( disable : 4250 ) 16 #ifndef NO_LONGLONG_TYPEDEF 22 # define LONGLONG_MAX 0x7FFFFFFFFFFFFFFFLL 25 # define LONGLONG_MIN 0x8000000000000000LL 29 # define ULONGLONG_MAX 0xfFFFFFFFFFFFFFFFLL 32 # define ULONGLONG_MIN 0x0000000000000000LL 37 #if !defined( GAUDI_V20_COMPAT ) || defined( G21_HIDE_SYMBOLS ) 40 # if __GNUC__ >= 4 && !defined( __CINT__ ) 41 # define GAUDI_HASCLASSVISIBILITY 56 # if defined( GAUDI_HASCLASSVISIBILITY ) 57 # define GAUDI_IMPORT __attribute__( ( visibility( "default" ) ) ) 58 # define GAUDI_EXPORT __attribute__( ( visibility( "default" ) ) ) 59 # define GAUDI_LOCAL __attribute__( ( visibility( "hidden" ) ) ) 68 # ifdef GAUDI_LINKER_LIBRARY 69 # define GAUDI_API GAUDI_EXPORT 71 # define GAUDI_API GAUDI_IMPORT 79 #endif // GAUDI_V20_COMPAT 88 #if defined( UNLIKELY ) 91 #if defined( __GNUC__ ) || defined( __clang__ ) 92 # define LIKELY( x ) __builtin_expect( ( x ), 1 ) 93 # define UNLIKELY( x ) __builtin_expect( ( x ), 0 ) 95 # define LIKELY( x ) x 96 # define UNLIKELY( x ) x 103 #if defined( __GNUC__ ) 104 # if defined( __SANITIZE_ADDRESS__ ) 105 # define GAUDI_NO_SANITIZE_ADDRESS __attribute__( ( no_sanitize_address ) ) 108 # define GAUDI_NO_SANITIZE_MEMORY __attribute__( ( no_sanitize_memory ) ) 110 # define GAUDI_NO_SANITIZE_UNDEFINED __attribute__( ( no_sanitize_undefined ) ) 112 # define GAUDI_NO_SANITIZE_THREAD __attribute__( ( no_sanitize_thread ) ) 115 #if defined( __clang__ ) 116 # if __has_feature( address_sanitizer ) 117 # define GAUDI_NO_SANITIZE_ADDRESS __attribute__( ( no_sanitize( "address" ) ) ) 119 # if __has_feature( memory_sanitizer ) 120 # define GAUDI_NO_SANITIZE_MEMORY __attribute__( ( no_sanitize( "memory" ) ) ) 122 # if __has_feature( undefined_sanitizer ) 123 # define GAUDI_NO_SANITIZE_UNDEFINED __attribute__( ( no_sanitize( "undefined" ) ) ) 125 # if __has_feature( thread_sanitizer ) 126 # define GAUDI_NO_SANITIZE_THREAD __attribute__( ( no_sanitize( "thread" ) ) ) 130 #ifndef GAUDI_NO_SANITIZE_ADDRESS 131 # define GAUDI_NO_SANITIZE_ADDRESS 133 #ifndef GAUDI_NO_SANITIZE_MEMORY 134 # define GAUDI_NO_SANITIZE_MEMORY 136 #ifndef GAUDI_NO_SANITIZE_UNDEFINED 137 # define GAUDI_NO_SANITIZE_UNDEFINED 139 #ifndef GAUDI_NO_SANITIZE_THREAD 140 # define GAUDI_NO_SANITIZE_THREAD 156 #define GAUDI_DO_PRAGMA( x ) _Pragma( #x ) 157 #if defined( __clang__ ) 158 # define GAUDI_LOOP_UNROLL( x ) GAUDI_DO_PRAGMA( clang loop unroll_count( x ) ) 159 #elif defined( __GNUC__ ) 160 # define GAUDI_LOOP_UNROLL( x ) GAUDI_DO_PRAGMA( GCC unroll x ) 162 # define GAUDI_LOOP_UNROLL( x ) 166 #endif // GAUDIKERNEL_KERNEL_H
unsigned long long int ulonglong