Skip to content

impl


simd_allones function

template <typename Tout, size_t N>
simd<Tout, N> simd_allones() CMT_NOEXCEPT

Returns vector with all ones


simd_bitcast function

template <typename Tout, typename Tin, size_t N,
          size_t Nout = (sizeof(Tin) * N / sizeof(Tout))
#ifdef CMT_COMPILER_IS_MSVC
              ,
          KFR_ENABLE_IF((Nout == 1 || N == 1) &&
                        !std::is_same_v<Tout, Tin>)
#else
              ,
          KFR_ENABLE_IF(Nout == 1 || N == 1)
#endif
          >
simd<Tout, Nout>
simd_bitcast(simd_cvt_t<Tout, Tin, N>,
             const simd<Tin, N> &x) CMT_NOEXCEPT

Converts input vector to vector with subtype Tout


template <typename Tout, typename Tin, size_t N,
          size_t Nout = (sizeof(Tin) * N / sizeof(Tout))
#ifdef CMT_COMPILER_IS_MSVC
              ,
          KFR_ENABLE_IF(Nout > 1 && N > 1 &&
                        !std::is_same_v<Tout, Tin>)
#else
              ,
          KFR_ENABLE_IF(Nout > 1 && N > 1)
#endif
          >
simd<Tout, Nout>
simd_bitcast(simd_cvt_t<Tout, Tin, N>,
             const simd<Tin, N> &x) CMT_NOEXCEPT

Converts input vector to vector with subtype Tout


simd_convert function

template <typename Tout, typename Tin,
          KFR_ENABLE_IF(!std::is_same<Tout, Tin>::value)>
simd<Tout, 1>
simd_convert(simd_cvt_t<Tout, Tin, 1>,
             const simd<Tin, 1> &x) CMT_NOEXCEPT

Converts input vector to vector with subtype Tout


template <typename Tout, typename Tin, size_t N>
simd<Tout, N>
simd_convert(simd_cvt_t<Tout, Tin, N>,
             const simd<Tin, N> &x) CMT_NOEXCEPT

Converts input vector to vector with subtype Tout


template <typename T, size_t N>
const simd<T, N> &
simd_convert(simd_cvt_t<T, T, N>,
             const simd<T, N> &x) CMT_NOEXCEPT

Converts input vector to vector with subtype Tout


simd_undefined function

template <typename Tout, size_t N>
simd<Tout, N> simd_undefined() CMT_NOEXCEPT

Returns vector with undefined value


simd_zeros function

template <typename Tout, size_t N>
simd<Tout, N> simd_zeros() CMT_NOEXCEPT

Returns vector with all zeros


Auto-generated from sources, Revision 6aea976a464de59d522d0c629e64bf0c044e6777, https://github.com/kfrlib/kfr/blob/6aea976a464de59d522d0c629e64bf0c044e6777/include/kfr/