mirror of https://github.com/libAthena/athena.git
GCC simd fix
This commit is contained in:
parent
af7d73f9bd
commit
c1a1c6e754
|
@ -1280,9 +1280,10 @@ public:
|
||||||
|
|
||||||
// generator constructor
|
// generator constructor
|
||||||
template <class _Generator,
|
template <class _Generator,
|
||||||
int = typename std::enable_if<__can_generate<_Generator>(std::make_index_sequence<size()>()), int>::type()>
|
int = typename std::enable_if<__can_generate<_Generator>(
|
||||||
|
std::make_index_sequence<simd_size<_Tp, _Abi>::value>()), int>::type()>
|
||||||
explicit simd(_Generator&& __g) {
|
explicit simd(_Generator&& __g) {
|
||||||
__generator_init(std::forward<_Generator>(__g), std::make_index_sequence<size()>());
|
__generator_init(std::forward<_Generator>(__g), std::make_index_sequence<simd_size<_Tp, _Abi>::value>());
|
||||||
}
|
}
|
||||||
|
|
||||||
// load constructor
|
// load constructor
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#define _ATHENA_SIMD_INCLUDED
|
#define _ATHENA_SIMD_INCLUDED
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wignored-attributes"
|
||||||
|
#endif
|
||||||
namespace athena::_simd {
|
namespace athena::_simd {
|
||||||
using namespace std;
|
using namespace std;
|
||||||
}
|
}
|
||||||
|
@ -25,6 +29,9 @@ struct athena_native<double> {
|
||||||
};
|
};
|
||||||
} // namespace simd_abi
|
} // namespace simd_abi
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
namespace athena {
|
namespace athena {
|
||||||
template <typename T>
|
template <typename T>
|
||||||
using simd = _simd::simd<T, typename _simd::simd_abi::athena_native<T>::type>;
|
using simd = _simd::simd<T, typename _simd::simd_abi::athena_native<T>::type>;
|
||||||
|
|
Loading…
Reference in New Issue