Fallback vectorized class.
More...
#include <initializer_list>
#include <type_traits>
#include <algorithm>
#include <cstdint>
#include "boost/integer.hpp"
Go to the source code of this file.
|
template<typename T , size_t N> |
using | CxxUtils::ivec = vec_fb< typename boost::int_t< sizeof(T) *8 >::exact, N > |
|
|
template<typename T , size_t N> |
ivec< T, N > | CxxUtils::operator! (const vec_fb< T, N > &a) |
| Negation. More...
|
|
template<typename T , size_t N> |
ivec< T, N > | CxxUtils::operator&& (const vec_fb< T, N > &a, const vec_fb< T, N > &b) |
| V1 && V2. More...
|
|
template<typename T , size_t N, class U > |
ivec< T, N > | CxxUtils::operator&& (U a, const vec_fb< T, N > &b) |
| S && V. More...
|
|
template<typename T , size_t N, class U > |
ivec< T, N > | CxxUtils::operator&& (const vec_fb< T, N > &a, U b) |
| V && S. More...
|
|
template<typename T , size_t N> |
ivec< T, N > | CxxUtils::operator|| (const vec_fb< T, N > &a, const vec_fb< T, N > &b) |
| V1 || V2. More...
|
|
Fallback vectorized class.
- Author
- scott snyder snyde.nosp@m.r@bn.nosp@m.l.gov
This is intended to be (mostly) functionally equivalent to the built-in vectorized types. (One difference is that we don't support ?:, as that can't be overloaded.)
Definition in file vec_fb.h.
◆ BINOP
◆ RELOP
Value: template<typename T, size_t N> \
inline ivec<T, N>
operator op(
const vec_fb<T, N>&
a,
const vec_fb<T, N>&
b) \
{ \
for (
size_t i = 0;
i <
N; ++
i) \
c.m_arr[
i] =
a.m_arr[
i] op
b.m_arr[
i]; \
}
Definition at line 137 of file vec_fb.h.
◆ UNOP
Value: template<typename T, size_t N> \
inline vec_fb<T, N>
operator op(
const vec_fb<T, N>&
a) \
{ \
for (
size_t i = 0;
i <
N; ++
i) \
c.m_arr[
i] = op
a.m_arr[
i]; \
}
Definition at line 120 of file vec_fb.h.