Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/util/util_types.h
| Show All 27 Lines | |||||
| #if defined(__ppc64__) || defined(__PPC64__) || defined(__x86_64__) || defined(__ia64__) || defined(_M_X64) | #if defined(__ppc64__) || defined(__PPC64__) || defined(__x86_64__) || defined(__ia64__) || defined(_M_X64) | ||||
| #define __KERNEL_64_BIT__ | #define __KERNEL_64_BIT__ | ||||
| #endif | #endif | ||||
| /* Qualifiers for kernel code shared by CPU and GPU */ | /* Qualifiers for kernel code shared by CPU and GPU */ | ||||
| #ifndef __KERNEL_GPU__ | #ifndef __KERNEL_GPU__ | ||||
| #define ccl_device static inline | #define ccl_device static __attribute__ ((unused)) //inline | ||||
| #define ccl_device_noinline static | #define ccl_device_noinline static | ||||
| #define ccl_global | #define ccl_global | ||||
| #define ccl_constant | #define ccl_constant | ||||
| #define __KERNEL_WITH_SSE_ALIGN__ | #define __KERNEL_WITH_SSE_ALIGN__ | ||||
| #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_align(...) __declspec(align(__VA_ARGS__)) | #define ccl_align(...) __declspec(align(__VA_ARGS__)) | ||||
| #ifdef __KERNEL_64_BIT__ | #ifdef __KERNEL_64_BIT__ | ||||
| #define ccl_try_align(...) __declspec(align(__VA_ARGS__)) | #define ccl_try_align(...) __declspec(align(__VA_ARGS__)) | ||||
| #else | #else | ||||
| #undef __KERNEL_WITH_SSE_ALIGN__ | #undef __KERNEL_WITH_SSE_ALIGN__ | ||||
| #define ccl_try_align(...) /* not support for function arguments (error C2719) */ | #define ccl_try_align(...) /* not support for function arguments (error C2719) */ | ||||
| #endif | #endif | ||||
| #define ccl_may_alias | #define ccl_may_alias | ||||
| #define ccl_always_inline __forceinline | #define ccl_always_inline __forceinline | ||||
| #else | #else | ||||
| #define ccl_device_inline static inline __attribute__((always_inline)) | #define ccl_device_inline static __attribute__ ((unused)) //inline __attribute__((always_inline)) | ||||
| #define ccl_align(...) __attribute__((aligned(__VA_ARGS__))) | #define ccl_align(...) __attribute__((aligned(__VA_ARGS__))) | ||||
| #ifndef FREE_WINDOWS64 | #ifndef FREE_WINDOWS64 | ||||
| #define __forceinline inline __attribute__((always_inline)) | #define __forceinline inline __attribute__((always_inline)) | ||||
| #endif | #endif | ||||
| #define ccl_try_align(...) __attribute__((aligned(__VA_ARGS__))) | #define ccl_try_align(...) __attribute__((aligned(__VA_ARGS__))) | ||||
| #define ccl_may_alias __attribute__((__may_alias__)) | #define ccl_may_alias __attribute__((__may_alias__)) | ||||
| #define ccl_always_inline __attribute__((always_inline)) | #define ccl_always_inline __attribute__((always_inline)) | ||||
| ▲ Show 20 Lines • Show All 433 Lines • Show Last 20 Lines | |||||