Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:13:51

0001 #ifndef VECCORE_COMMON_H
0002 #define VECCORE_COMMON_H
0003 
0004 #if defined(__x86_64__) || defined(_M_X64)
0005 #define VECCORE_X64
0006 #elif defined(__i386__) || defined(_M_IX86)
0007 #define VECCORE_X86
0008 #elif defined(__aarch64__) || defined(_M_ARM64)
0009 #define VECCORE_ARM64
0010 #elif defined(__arm__) || defined(_M_ARM)
0011 #define VECCORE_ARM
0012 #elif defined(__PPC64__)
0013 #define VECCORE_PPC64
0014 #endif
0015 
0016 #include "CUDA.h"
0017 
0018 #ifndef VECCORE_CUDA
0019 #  include "SIMD.h"
0020 #endif
0021 
0022 #ifdef _MSC_VER
0023 #define __restrict__ __restrict
0024 #endif
0025 
0026 #ifndef VECCORE_NO_FORCED_INLINING
0027 #ifdef _MSC_VER
0028 #define VECCORE_FORCE_NOINLINE __declspec(noinline)
0029 #define VECCORE_FORCE_INLINE inline __forceinline
0030 #else
0031 #define VECCORE_FORCE_NOINLINE __attribute__((noinline))
0032 #define VECCORE_FORCE_INLINE inline __attribute__((always_inline))
0033 #endif
0034 #else
0035 #define VECCORE_FORCE_NOINLINE
0036 #define VECCORE_FORCE_INLINE
0037 #endif
0038 
0039 #endif