From: "Matteo F. Vescovi" Date: Sat, 21 Jul 2018 21:30:57 +0200 Subject: fix_gcc-8_ftbfs --- intern/cycles/util/util_sseb.h | 2 +- intern/cycles/util/util_ssef.h | 2 +- intern/itasc/kdl/tree.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/intern/cycles/util/util_sseb.h b/intern/cycles/util/util_sseb.h index 6e66970..9ffe391 100644 --- a/intern/cycles/util/util_sseb.h +++ b/intern/cycles/util/util_sseb.h @@ -116,7 +116,7 @@ __forceinline const sseb unpacklo( const sseb& a, const sseb& b ) { return _mm_u __forceinline const sseb unpackhi( const sseb& a, const sseb& b ) { return _mm_unpackhi_ps(a, b); } template __forceinline const sseb shuffle( const sseb& a ) { - return _mm_shuffle_epi32(a, _MM_SHUFFLE(i3, i2, i1, i0)); + return _mm_castsi128_ps(_mm_shuffle_epi32(a, _MM_SHUFFLE(i3, i2, i1, i0))); } template<> __forceinline const sseb shuffle<0, 1, 0, 1>( const sseb& a ) { diff --git a/intern/cycles/util/util_ssef.h b/intern/cycles/util/util_ssef.h index cf99a08..82cc218 100644 --- a/intern/cycles/util/util_ssef.h +++ b/intern/cycles/util/util_ssef.h @@ -603,7 +603,7 @@ ccl_device_inline const ssef uint32_to_float(const ssei &in) template ccl_device_inline const ssef set_sign_bit(const ssef &a) { - return a ^ cast(ssei(S1 << 31, S2 << 31, S3 << 31, S4 << 31)); + return cast(cast(a) ^ ssei(S1 << 31, S2 << 31, S3 << 31, S4 << 31)); } //////////////////////////////////////////////////////////////////////////////// diff --git a/intern/itasc/kdl/tree.hpp b/intern/itasc/kdl/tree.hpp index c8a253f..bd35f82 100644 --- a/intern/itasc/kdl/tree.hpp +++ b/intern/itasc/kdl/tree.hpp @@ -34,7 +34,7 @@ namespace KDL //Forward declaration class TreeElement; // Eigen allocator is needed for alignment of Eigen data types - typedef std::map, Eigen::aligned_allocator > > SegmentMap; + typedef std::map, Eigen::aligned_allocator > > SegmentMap; class TreeElement {