Skip to content
Permalink
Browse files

Merge branch 'avx512_ifpos' into 'master'

avx 512 ifpos implementation

See merge request jschoeberl/ngsolve!281
  • Loading branch information
JSchoeberl committed Jan 2, 2018
2 parents da3f89e + c0c4624 commit ebafa436129eb0127710657e524ac9e2ccd9b3cd
Showing with 2 additions and 5 deletions.
  1. +2 −5 ngstd/simd.hpp
@@ -664,11 +664,8 @@ namespace ngstd
INLINE SIMD<double,8> fabs (SIMD<double,8> a) { return _mm512_max_pd(a.Data(), -a.Data()); }
INLINE SIMD<double,8> IfPos (SIMD<double,8> a, SIMD<double> b, SIMD<double> c)
{
/*
auto cp = _mm512_cmp_pd (a.Data(), _mm512_setzero_pd(), _CMP_GT_OS);
return _mm512_blendv_pd(c.Data(), b.Data(), cp);
*/
throw Exception ("IfPos missing for AVX512");
auto k = _mm512_cmp_pd_mask(a.Data(),_mm512_setzero_pd(), _CMP_GT_OS);
return _mm512_mask_blend_pd(k,c.Data(),b.Data());
}


0 comments on commit ebafa43

Please sign in to comment.
You can’t perform that action at this time.