Skip to content

Commit

Permalink
Add declaration for missing intrinsic.
Browse files Browse the repository at this point in the history
  • Loading branch information
castano committed Aug 24, 2020
1 parent 631e627 commit f801b1b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions icbc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f801b1b

Please sign in to comment.