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);
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_NAMESPACE_END
VecBase< float, 4 > float4
ccl_device_inline float3 make_float3(const float4 a)
ccl_device_inline void print_float4(const ccl_private char *label, const float4 a)
ccl_device_inline float4 make_homogeneous(const float3 a)
ccl_device_inline int4 make_int4(const float4 f)