Data representation and operations on a vector of 4 boolean values. This is used in predicated vector operations. Specifically the ith value of svec<4,bool> indicates whether the ith lane of a predicated vector operation is enabled or not.
More...
|
| | svec () |
| | Default constructor. More...
|
| |
| | svec (__vector unsigned int vv) |
| | For internal use only. More...
|
| |
| | svec (uint32_t a, uint32_t b, uint32_t c, uint32_t d) |
| | Constructor. More...
|
| |
| | svec (uint32_t a) |
| | Constructor. More...
|
| |
| Helper | operator[] (int index) |
| |
| const uint32_t | operator[] (int index) const |
| |
| svec< 4,bool > | operator== (svec< 4, bool > a) |
| | Element-wise compare equal. E.g., "a == b". More...
|
| |
| svec< 4,bool > | operator!= (svec< 4, bool > a) |
| | Element-wise compare not equal, return a bool vector. E.g. "a != b". More...
|
| |
| void | store (svec< 4, bool > *p) |
| | Store the vector to address p. More...
|
| |
| bool | any_true () |
| | Check if any element in the mask vector is true. More...
|
| |
| bool | all_true () |
| | Check if all the elements in the mask vector is true. More...
|
| |
| bool | none_true () |
| | Check all the elements in the mask vector is false. More...
|
| |
| svec< 4,bool > | operator| (svec< 4, bool >) |
| | Element-wise bit-wise OR operator. E.g., "a | b". More...
|
| |
| svec< 4,bool > | operator& (svec< 4, bool > a) |
| | Element-wise bit-wise AND operator. E.g., "a & b". More...
|
| |
| svec< 4,bool > | operator^ (svec< 4, bool > a) |
| | Element-wise bit-wise XOR operator. E.g., "a ^ b". More...
|
| |
| svec< 4,bool > | operator~ () |
| | Element-wise bit-wise compliment operator. E.g., "~a". More...
|
| |
| svec< 4,bool > | operator! () |
| | Element-wise bit-wise not operator. E.g., "!a". More...
|
| |
| svec< 4,bool > | operator&& (svec< 4, bool > a) |
| | Element-wise boolean AND operator. E.g., "a && b". More...
|
| |
| svec< 4,bool > | operator|| (svec< 4, bool > a) |
| | Element-wise boolean OR operator. E.g., "a || b". More...
|
| |
template<>
struct vsx::svec< 4, bool >
Data representation and operations on a vector of 4 boolean values. This is used in predicated vector operations. Specifically the ith value of svec<4,bool> indicates whether the ith lane of a predicated vector operation is enabled or not.
See also gather, scatter, load, store, and compare operations.