Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/util/util_math_float4.h
| Show First 20 Lines • Show All 491 Lines • ▼ Show 20 Lines | # else | ||||
| float4 h = max(shuffle<1, 0, 3, 2>(a), a); | float4 h = max(shuffle<1, 0, 3, 2>(a), a); | ||||
| return max(shuffle<2, 3, 0, 1>(h), h); | return max(shuffle<2, 3, 0, 1>(h), h); | ||||
| # endif | # endif | ||||
| # else | # else | ||||
| return make_float4(max(max(a.x, a.y), max(a.z, a.w))); | return make_float4(max(max(a.x, a.y), max(a.z, a.w))); | ||||
| # endif | # endif | ||||
| } | } | ||||
| ccl_device_inline float4 load_float4(const float *v) | ccl_device_inline float4 load_float4(ccl_private const float *v) | ||||
| { | { | ||||
| # ifdef __KERNEL_SSE__ | # ifdef __KERNEL_SSE__ | ||||
| return float4(_mm_loadu_ps(v)); | return float4(_mm_loadu_ps(v)); | ||||
| # else | # else | ||||
| return make_float4(v[0], v[1], v[2], v[3]); | return make_float4(v[0], v[1], v[2], v[3]); | ||||
| # endif | # endif | ||||
| } | } | ||||
| Show All 28 Lines | |||||