From 9247c89fd73e6a197af379cc97622899fd549d5f Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Thu, 20 Apr 2017 11:41:16 +0200 Subject: [PATCH] add missing function HSum(a,b) for SIMD --- libsrc/general/ngsimd.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libsrc/general/ngsimd.hpp b/libsrc/general/ngsimd.hpp index feb0c046..c12b5aff 100644 --- a/libsrc/general/ngsimd.hpp +++ b/libsrc/general/ngsimd.hpp @@ -248,6 +248,11 @@ using std::fabs; return sd.Data(); } + inline auto HSum (SIMD sd1, SIMD sd2) + { + return std::make_tuple(sd1.Data(), sd2.Data()); + } + ///////////////////////////////////////////////////////////////////////////// // AVX - Simd width 4 /////////////////////////////////////////////////////////////////////////////