Go to the documentation of this file.
6 #ifndef INCLUDED_IMATH_CONFIG_H
7 #define INCLUDED_IMATH_CONFIG_H 1
24 #define IMATH_HALF_USE_LOOKUP_TABLE
38 #define IMATH_INTERNAL_NAMESPACE_CUSTOM 1
39 #define IMATH_INTERNAL_NAMESPACE Imath_3_2_sidefx
42 #define IMATH_NAMESPACE_CUSTOM 1
43 #define IMATH_NAMESPACE Imath
49 #define IMATH_VERSION_STRING "3.2.2"
50 #define IMATH_PACKAGE_STRING "Imath 3.2.2"
52 #define IMATH_VERSION_MAJOR 3
53 #define IMATH_VERSION_MINOR 2
54 #define IMATH_VERSION_PATCH 2
55 #define IMATH_VERSION_RELEASE_TYPE ""
57 #define IMATH_VERSION_HEX \
58 ((uint32_t (IMATH_VERSION_MAJOR) << 24) | \
59 (uint32_t (IMATH_VERSION_MINOR) << 16) | \
60 (uint32_t (IMATH_VERSION_PATCH) << 8))
63 #define IMATH_LIB_VERSION_STRING "30.3.2.2"
76 #define IMATH_USE_NOEXCEPT 1
77 #if IMATH_USE_NOEXCEPT
78 # define IMATH_NOEXCEPT noexcept
80 # define IMATH_NOEXCEPT
92 #ifndef IMATH_FOREIGN_VECTOR_INTEROP
93 # if defined(__GNUC__) && __GNUC__ == 4 && !defined(__clang__)
94 # define IMATH_FOREIGN_VECTOR_INTEROP 0
96 # define IMATH_FOREIGN_VECTOR_INTEROP 1
105 #if defined(__CUDACC__) || defined(__HIP__)
106 # define IMATH_HOSTDEVICE __host__ __device__
108 # define IMATH_HOSTDEVICE
124 #if defined(__GNUC__) || defined(__clang__) || defined(__INTEL_COMPILER)
126 # define IMATH_LIKELY(x) (__builtin_expect (static_cast<bool> (x), true))
127 # define IMATH_UNLIKELY(x) \
128 (__builtin_expect (static_cast<bool> (x), false))
130 # define IMATH_LIKELY(x) (__builtin_expect ((x), 1))
131 # define IMATH_UNLIKELY(x) (__builtin_expect ((x), 0))
134 # define IMATH_LIKELY(x) (x)
135 # define IMATH_UNLIKELY(x) (x)
140 #ifndef __has_attribute
141 # define __has_attribute(x) 0
149 #if defined(_MSC_VER)
150 # define IMATH_DEPRECATED(msg) __declspec(deprecated (msg))
151 #elif defined(__cplusplus) && __cplusplus >= 201402L
152 # define IMATH_DEPRECATED(msg) [[deprecated (msg)]]
153 #elif defined(__GNUC__) || defined(__clang__)
154 # define IMATH_DEPRECATED(msg) __attribute__ ((deprecated (msg)))
156 # define IMATH_DEPRECATED(msg)
161 #define IMATH_ENABLE_API_VISIBILITY
166 #if !defined(_MSC_VER) && defined(IMATH_ENABLE_API_VISIBILITY)
167 # define IMATH_PUBLIC_SYMBOL_ATTRIBUTE \
168 __attribute__ ((__visibility__ ("default")))
169 # define IMATH_PRIVATE_SYMBOL_ATTRIBUTE \
170 __attribute__ ((__visibility__ ("hidden")))
172 # if __has_attribute(__type_visibility__)
173 # define IMATH_PUBLIC_TYPE_VISIBILITY_ATTRIBUTE \
174 __attribute__ ((__type_visibility__ ("default")))
178 #endif // INCLUDED_IMATH_CONFIG_H