1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-17 15:27:06 +01:00

Corrected some compilation errors (zolotarev.h) and SSE4 vsplat and conj to make cshift test pass.

This commit is contained in:
neo
2015-05-18 16:48:14 +09:00
parent 1887c77498
commit 6d2accba7b
26 changed files with 482 additions and 73 deletions

View File

@ -345,6 +345,9 @@ friend inline void vstore(const vComplexD &ret, ComplexD *a){
// REDUCE FIXME must be a cleaner implementation
friend inline ComplexD Reduce(const vComplexD & in)
{
#if defined SSE4
return ComplexD(in.v[0], in.v[1]); // inefficient
#endif
#if defined (AVX1) || defined(AVX2)
// return std::complex<double>(_mm256_mask_reduce_add_pd(0x55, in.v),_mm256_mask_reduce_add_pd(0xAA, in.v));
__attribute__ ((aligned(32))) double c_[4];