Go to the documentation of this file.
6 #ifndef INCLUDED_IMATH_CONFIG_H
7 #define INCLUDED_IMATH_CONFIG_H 1
21 #define IMATH_HALF_USE_LOOKUP_TABLE
35 #define IMATH_INTERNAL_NAMESPACE_CUSTOM 1
36 #define IMATH_INTERNAL_NAMESPACE Imath_3_1_sidefx
39 #define IMATH_NAMESPACE_CUSTOM 1
40 #define IMATH_NAMESPACE Imath
46 #define IMATH_VERSION_STRING "3.1.5"
47 #define IMATH_PACKAGE_STRING "Imath 3.1.5"
49 #define IMATH_VERSION_MAJOR 3
50 #define IMATH_VERSION_MINOR 1
51 #define IMATH_VERSION_PATCH 5
52 #define IMATH_VERSION_RELEASE_TYPE ""
54 #define IMATH_VERSION_HEX ((uint32_t(IMATH_VERSION_MAJOR) << 24) | \
55 (uint32_t(IMATH_VERSION_MINOR) << 16) | \
56 (uint32_t(IMATH_VERSION_PATCH) << 8))
59 #define IMATH_LIB_VERSION_STRING "29.4.0"
70 #define IMATH_USE_NOEXCEPT 1
71 #if IMATH_USE_NOEXCEPT
72 #define IMATH_NOEXCEPT noexcept
74 #define IMATH_NOEXCEPT
86 #ifndef IMATH_FOREIGN_VECTOR_INTEROP
87 # if defined(__GNUC__) && __GNUC__ == 4 && !defined(__clang__)
88 # define IMATH_FOREIGN_VECTOR_INTEROP 0
90 # define IMATH_FOREIGN_VECTOR_INTEROP 1
100 #define IMATH_HOSTDEVICE __host__ __device__
102 #define IMATH_HOSTDEVICE
119 #if defined(__GNUC__) || defined(__clang__) || defined(__INTEL_COMPILER)
121 # define IMATH_LIKELY(x) (__builtin_expect(static_cast<bool>(x), true))
122 # define IMATH_UNLIKELY(x) (__builtin_expect(static_cast<bool>(x), false))
124 # define IMATH_LIKELY(x) (__builtin_expect((x), 1))
125 # define IMATH_UNLIKELY(x) (__builtin_expect((x), 0))
128 # define IMATH_LIKELY(x) (x)
129 # define IMATH_UNLIKELY(x) (x)
135 #ifndef __has_attribute
136 # define __has_attribute(x) 0
145 #if defined(_MSC_VER)
146 # define IMATH_DEPRECATED(msg) __declspec(deprecated(msg))
147 #elif defined(__cplusplus) && __cplusplus >= 201402L
148 # define IMATH_DEPRECATED(msg) [[deprecated(msg)]]
149 #elif defined(__GNUC__) || defined(__clang__)
150 # define IMATH_DEPRECATED(msg) __attribute__((deprecated(msg)))
152 # define IMATH_DEPRECATED(msg)
157 #define IMATH_ENABLE_API_VISIBILITY
162 #if ! defined(_MSC_VER) && defined(IMATH_ENABLE_API_VISIBILITY)
163 # define IMATH_PUBLIC_SYMBOL_ATTRIBUTE __attribute__ ((__visibility__ ("default")))
164 # define IMATH_PRIVATE_SYMBOL_ATTRIBUTE __attribute__ ((__visibility__ ("hidden")))
166 # if __has_attribute(__type_visibility__)
167 # define IMATH_PUBLIC_TYPE_VISIBILITY_ATTRIBUTE __attribute__ ((__type_visibility__ ("default")))
171 #endif // INCLUDED_IMATH_CONFIG_H