diff options
Diffstat (limited to 'intern/cycles/util/util_ssef.h')
-rw-r--r-- | intern/cycles/util/util_ssef.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/intern/cycles/util/util_ssef.h b/intern/cycles/util/util_ssef.h index e9f0efb4efb..b14640ced40 100644 --- a/intern/cycles/util/util_ssef.h +++ b/intern/cycles/util/util_ssef.h @@ -730,27 +730,27 @@ __forceinline float reduce_add(const ssef &v) return _mm_cvtss_f32(vreduce_add(v)); } -__forceinline size_t select_min(const ssef &v) +__forceinline uint32_t select_min(const ssef &v) { return __bsf(movemask(v == vreduce_min(v))); } -__forceinline size_t select_max(const ssef &v) +__forceinline uint32_t select_max(const ssef &v) { return __bsf(movemask(v == vreduce_max(v))); } -__forceinline size_t select_min(const sseb &valid, const ssef &v) +__forceinline uint32_t select_min(const sseb &valid, const ssef &v) { const ssef a = select(valid, v, ssef(pos_inf)); return __bsf(movemask(valid & (a == vreduce_min(a)))); } -__forceinline size_t select_max(const sseb &valid, const ssef &v) +__forceinline uint32_t select_max(const sseb &valid, const ssef &v) { const ssef a = select(valid, v, ssef(neg_inf)); return __bsf(movemask(valid & (a == vreduce_max(a)))); } -__forceinline size_t movemask(const ssef &a) +__forceinline uint32_t movemask(const ssef &a) { return _mm_movemask_ps(a); } |