Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/util/defines.h
| Show All 17 Lines | |||||
| /* Qualifiers for kernel code shared by CPU and GPU */ | /* Qualifiers for kernel code shared by CPU and GPU */ | ||||
| #ifndef __KERNEL_GPU__ | #ifndef __KERNEL_GPU__ | ||||
| /* Leave inlining decisions to compiler for these, the inline keyword here | /* Leave inlining decisions to compiler for these, the inline keyword here | ||||
| * is not about performance but including function definitions in headers. */ | * is not about performance but including function definitions in headers. */ | ||||
| # define ccl_device static inline | # define ccl_device static inline | ||||
| # define ccl_device_extern extern "C" | |||||
| # define ccl_device_noinline static inline | # define ccl_device_noinline static inline | ||||
| # define ccl_device_noinline_cpu ccl_device_noinline | # define ccl_device_noinline_cpu ccl_device_noinline | ||||
| /* Forced inlining. */ | /* Forced inlining. */ | ||||
| # if defined(_WIN32) && !defined(FREE_WINDOWS) | # if defined(_WIN32) && !defined(FREE_WINDOWS) | ||||
| # define ccl_device_inline static __forceinline | # define ccl_device_inline static __forceinline | ||||
| # define ccl_device_forceinline static __forceinline | # define ccl_device_forceinline static __forceinline | ||||
| # define ccl_device_inline_method __forceinline | # define ccl_device_inline_method __forceinline | ||||
| ▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines | |||||