11#if !defined(__KERNEL_METAL__)
14# if defined(__KERNEL_SSE__) && defined(__KERNEL_SSE42__)
15 return int3(_mm_min_epi32(a.m128,
b.m128));
23# if defined(__KERNEL_SSE__) && defined(__KERNEL_SSE42__)
24 return int3(_mm_max_epi32(a.m128,
b.m128));
50 return a.
x ==
b.x && a.
y ==
b.y && a.
z ==
b.z;
60 return a.
x <
b.x && a.
y <
b.y && a.
z <
b.z;
66 return int3(_mm_add_epi32(a.m128,
b.m128));
75 return int3(_mm_sub_epi32(a.m128,
b.m128));
103# ifdef __KERNEL_SSE__
104 return int3(_mm_and_si128(a.m128, _mm_set1_epi32(
b)));
112 return a.
x && a.
y && a.
z;
#define ccl_device_inline
#define CCL_NAMESPACE_END
bool all(VecOp< bool, D >) RET
constexpr T clamp(T, U, U) RET
__forceinline LightTreeMeasure operator+(const LightTreeMeasure &a, const LightTreeMeasure &b)
ccl_device_inline Extrema< T > operator*(const Extrema< T > a, const T b)
ccl_device_inline dual< T1 > operator-(const dual< T1 > a, T2 b)
ccl_device_inline bool operator<(const ccl_private dual1 &a, const float b)
ccl_device_inline bool operator!=(const float2 a, const float2 b)
ccl_device_inline bool operator==(const float2 a, const float2 b)
ccl_device_inline float4 operator^(const float4 a, const float4 b)
ccl_device_inline int2 operator&(const int2 a, const int2 b)
ccl_device_inline int2 operator>>(const int2 a, const int i)