From f801b1b4f8dc2d1fc1c63de991709416622b6a9c Mon Sep 17 00:00:00 2001 From: Ignacio Castano Date: Sun, 23 Aug 2020 21:56:05 -0700 Subject: [PATCH] Add declaration for missing intrinsic. --- icbc.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/icbc.h b/icbc.h index 7f44635..47d2f38 100644 --- a/icbc.h +++ b/icbc.h @@ -724,6 +724,11 @@ ICBC_FORCEINLINE uint mask(VMask m) { return (uint)_mm256_movemask_ps(m); } +// This is missing on some GCC versions. +#if !defined _mm256_set_m128 +#define _mm256_set_m128(hi, lo) _mm256_insertf128_ps(_mm256_castps128_ps256(lo), (hi), 0x1) +#endif + ICBC_FORCEINLINE int reduce_min_index(VFloat v) { __m128 vlow = _mm256_castps256_ps128(v);