1#ifndef BVH_V2_PLATFORM_H
2#define BVH_V2_PLATFORM_H
5#define BVH_CLANG_ENABLE_FP_CONTRACT \
6 _Pragma("clang diagnostic push") \
7 _Pragma("clang diagnostic ignored \"-Wunknown-pragmas\"") \
8 _Pragma("STDC FP_CONTRACT ON") \
9 _Pragma("clang diagnostic pop")
11#define BVH_CLANG_ENABLE_FP_CONTRACT
14#if defined(__GNUC__) || defined(__clang__)
15#define BVH_ALWAYS_INLINE __attribute__((always_inline)) inline
16#elif defined(_MSC_VER)
17#define BVH_ALWAYS_INLINE __forceinline
19#define BVH_ALWAYS_INLINE inline