Skip to content

Commit

Permalink
Fix SimdChooser: on not x86_64 machines its value could be an nonexis…
Browse files Browse the repository at this point in the history
…tant struct
  • Loading branch information
cyrilbouvier committed Dec 17, 2021
1 parent 8b255cf commit 9b6083c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions fflas-ffpack/fflas/fflas_simd.h
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,20 @@ struct SimdChooser<T, true, true> // integral number
#endif
};

#ifndef __x86_64__
template <>
struct SimdChooser<uint64_t, true, true>
{
using value = NoSimd<uint64_t>;
};

template <>
struct SimdChooser<int64_t, true, true>
{
using value = NoSimd<int64_t>;
};
#endif

template <class T> using Simd = typename SimdChooser<T>::value;

// template <class T> struct SimdChooser<T, true> {
Expand Down

0 comments on commit 9b6083c

Please sign in to comment.