11#ifndef __KERNEL_NATIVE_VECTOR_TYPES__
12# ifdef __KERNEL_ONEAPI__
56# ifndef __KERNEL_GPU__
75# if defined(__KERNEL_GPU__)
77# elif defined(__KERNEL_SSE__)
78 return int3(_mm_set_epi32(0,
z,
y,
x));
88#if defined(__KERNEL_GPU__)
90#elif defined(__KERNEL_SSE__)
91 return int3(_mm_set1_epi32(
i));
99#ifdef __KERNEL_PRINTF__
100 printf(
"%s: %d %d %d\n", label, a.
x, a.
y, a.
z);
104#if defined(__KERNEL_METAL__)
106#elif defined(__KERNEL_CUDA__) || defined(__KERNEL_ONEAPI__)
117 :
x(px),
y(py),
z(pz) {};
134# ifndef __KERNEL_GPU__
150static_assert(
sizeof(
packed_int3) == 12,
"packed_int3 expected to be exactly 12 bytes");
btGeneric6DofConstraint & operator=(btGeneric6DofConstraint &other)
SIMD_FORCE_INLINE const btScalar & z() const
Return the z value.
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
#define util_assert(statement)
#define ccl_device_inline
#define ccl_try_align(...)
#define ccl_device_inline_method
#define CCL_NAMESPACE_END
const int & operator[](int i) const
ccl_device_inline_method packed_int3 & operator=(const int3 &a)
ccl_device_inline_method packed_int3(const int3 &a)
ccl_device_inline_method packed_int3(const int px, const int py, const int pz)
__forceinline int & operator[](int i)
__forceinline int operator[](int i) const
ccl_device_inline_method packed_int3()=default
ccl_device_inline int3 make_int3(const int x, const int y, int z)
ccl_device_inline void print_int3(const ccl_private char *label, const int3 a)
ccl_device_inline packed_int3 make_packed_int3(const int x, const int y, int z)