kfr

Fast, modern C++ DSP framework, FFT, Sample Rate Conversion, FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON)
Log | Files | Refs | README

commit 7852e9fd6c7eac589da3817564df9bb2b022df15
parent 426c2c6a75afd5e6ccd95fcd8b8f13e4b6b00f04
Author: [email protected] <[email protected]>
Date:   Thu,  1 Sep 2016 14:37:36 +0300

select: add overload for vec parameter

Diffstat:
Minclude/kfr/base/select.hpp | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/include/kfr/base/select.hpp b/include/kfr/base/select.hpp @@ -198,6 +198,12 @@ KFR_SINTRIN vec<T, N> select(const mask<T, N>& m, const vec<T, N>& x, const vec< return y ^ ((x ^ y) & vec<T, N>(*m)); } #endif + +template <typename T, size_t N> +KFR_SINTRIN vec<T, N> select(const vec<T, N>& m, const vec<T, N>& x, const vec<T, N>& y) +{ + return select(mask<T, N>(*m), x, y); +} } KFR_I_FN(select)