diff --git a/lib/Grid_extract.h b/lib/Grid_extract.h index e29fbee7..75868463 100644 --- a/lib/Grid_extract.h +++ b/lib/Grid_extract.h @@ -11,7 +11,7 @@ namespace Grid{ //////////////////////////////////////////////////////////////////////////////////////////////// template -inline void extract(typename std::enable_if::notvalue, const vsimd >::type * y, +inline void extract(typename std::enable_if::value, const vsimd >::type * y, std::vector &extracted,int offset){ // FIXME: bounce off memory is painful int Nextr=extracted.size(); @@ -27,7 +27,7 @@ inline void extract(typename std::enable_if::notvalue, const // Merge simd vector from array of scalars to pointer array with offset //////////////////////////////////////////////////////////////////////// template -inline void merge(typename std::enable_if::notvalue, vsimd >::type * y, +inline void merge(typename std::enable_if::value, vsimd >::type * y, std::vector &extracted,int offset){ int Nextr=extracted.size(); int Nsimd=vsimd::Nsimd(); @@ -47,7 +47,7 @@ inline void merge(typename std::enable_if::notvalue, vsimd > // Extract a fundamental vector type to scalar array //////////////////////////////////////////////////////////////////////////////////////////////// template -inline void extract(typename std::enable_if::notvalue, const vsimd >::type &y,std::vector &extracted){ +inline void extract(typename std::enable_if::value, const vsimd >::type &y,std::vector &extracted){ int Nextr=extracted.size(); int Nsimd=vsimd::Nsimd(); @@ -66,7 +66,7 @@ inline void extract(typename std::enable_if::notvalue, const // Merge simd vector from array of scalars //////////////////////////////////////////////////////////////////////// template -inline void merge(typename std::enable_if::notvalue, vsimd >::type &y,std::vector &extracted){ +inline void merge(typename std::enable_if::value, vsimd >::type &y,std::vector &extracted){ int Nextr=extracted.size(); int Nsimd=vsimd::Nsimd(); int s=Nsimd/Nextr; @@ -80,7 +80,7 @@ inline void merge(typename std::enable_if::notvalue, vsimd > }; template -inline void AmergeA(typename std::enable_if::notvalue, vsimd >::type &y,std::vector &extracted){ +inline void AmergeA(typename std::enable_if::value, vsimd >::type &y,std::vector &extracted){ int Nextr=extracted.size(); int Nsimd=vsimd::Nsimd(); int s=Nsimd/Nextr;