forked from bartvdbraak/blender
Fix Cycles AVX unit test still failing to build with old GCC
This commit is contained in:
parent
b8d9b5e331
commit
12628e0794
@ -589,8 +589,8 @@ __forceinline __m128 _mm_round_ps_emu(__m128 value, const int flags)
|
||||
# endif /* !(defined(__KERNEL_SSE41__) || defined(__SSE4_1__) || defined(__SSE4_2__)) */
|
||||
|
||||
/* Older GCC versions do not have _mm256_cvtss_f32 yet, so define it ourselves.
|
||||
* _mm256_castps256_ps128 generates no instructions so this is jus as efficient. */
|
||||
# ifdef __KERNEL_AVX__
|
||||
* _mm256_castps256_ps128 generates no instructions so this is just as efficient. */
|
||||
# if defined(__KERNEL_AVX__) || defined(__KERNEL_AVX2__)
|
||||
# undef _mm256_cvtss_f32
|
||||
# define _mm256_cvtss_f32(a) (_mm_cvtss_f32(_mm256_castps256_ps128(a)))
|
||||
# endif
|
||||
|
Loading…
Reference in New Issue
Block a user