File indexing completed on 2025-09-17 09:13:46
0001 #ifndef BVH_V2_PLATFORM_H
0002 #define BVH_V2_PLATFORM_H
0003
0004 #if defined(__clang__)
0005 #define BVH_CLANG_ENABLE_FP_CONTRACT \
0006 _Pragma("clang diagnostic push") \
0007 _Pragma("clang diagnostic ignored \"-Wunknown-pragmas\"") \
0008 _Pragma("STDC FP_CONTRACT ON") \
0009 _Pragma("clang diagnostic pop")
0010 #else
0011 #define BVH_CLANG_ENABLE_FP_CONTRACT
0012 #endif
0013
0014 #if defined(__GNUC__) || defined(__clang__)
0015 #define BVH_ALWAYS_INLINE __attribute__((always_inline)) inline
0016 #elif defined(_MSC_VER)
0017 #define BVH_ALWAYS_INLINE __forceinline
0018 #else
0019 #define BVH_ALWAYS_INLINE inline
0020 #endif
0021
0022 #endif