void-packages/srcpkgs/goxel/patches/util_sseb.patch
Jürgen Buchmüller 3281deafc9
goxel: fix build w/ gcc-8.2.0
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2018-08-23 11:34:08 +02:00

11 lines
600 B
Diff

--- ext_src/cycles/src/util/util_sseb.h 2018-04-25 09:48:18.000000000 +0200
+++ ext_src/cycles/src/util/util_sseb.h 2018-08-23 11:27:31.552028617 +0200
@@ -119,7 +119,7 @@
__forceinline const sseb unpackhi( const sseb& a, const sseb& b ) { return _mm_unpackhi_ps(a, b); }
template<size_t i0, size_t i1, size_t i2, size_t i3> __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 ) {