13#ifndef __KERNEL_NATIVE_VECTOR_TYPES__
48# ifndef __KERNEL_GPU__
78 return float4(_mm_set1_ps(f));
102 return float4(_mm_cvtepi32_ps(i.m128));
116 return int4(_mm_cvtps_epi32(f.m128));
122#if defined __METAL_PRINTF__
123# define print_float4(label, a) \
124 metal::os_log_default.log_debug(label ": %.8f %.8f %.8f %.8f", (a).x, (a).y, (a).z, (a).w)
128# ifdef __KERNEL_PRINTF__
129 printf(
"%s: %.8f %.8f %.8f %.8f\n", label, (
double)a.
x, (
double)a.
y, (
double)a.
z, (
double)a.
w);
139#if defined(__KERNEL_METAL__)
166 "packed_float4 expected to have the same alignment as float");
167static_assert(
sizeof(
packed_float4) == 16,
"packed_float4 expected to be exactly 16 bytes");
btGeneric6DofConstraint & operator=(btGeneric6DofConstraint &other)
SIMD_FORCE_INLINE btVector3 & operator[](int i)
Get a mutable reference to a row of the matrix as a vector.
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
VecBase< float, 4 > float4
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
ccl_device_inline_method packed_float4(const float4 a)
ccl_device_inline_method packed_float4 & operator=(const float4 &a)
ccl_device_inline dual4 make_homogeneous(const dual3 a)
ccl_device_inline void print_float4(const ccl_private char *label, const float4 a)
ccl_device_inline float4 make_float4(const float x, const float y, float z, const float w)